mirror of
https://git.proxmox.com/git/qemu
synced 2025-08-08 00:24:59 +00:00
Fix to 'gdb detach' stub
With this patch, 'gdb detach' correctly resumes the inferior execution after detaching the debugger. The bug was caused by qemu asking gdb to execute a syscall (isatty) after the detach, and then waiting (forever) for the reply. I fixed this by properly setting gdb_syscall_mode appropriately in the 'detach' packet handling, so subsequent syscalls are solved by qemu rather than gdb. Signed-off-by: Daniel Gutson <dgutson@codesourcery.com> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
This commit is contained in:
parent
aa37520618
commit
7ea06da32b
@ -1868,6 +1868,7 @@ static int gdb_handle_packet(GDBState *s, const char *line_buf)
|
|||||||
case 'D':
|
case 'D':
|
||||||
/* Detach packet */
|
/* Detach packet */
|
||||||
gdb_breakpoint_remove_all();
|
gdb_breakpoint_remove_all();
|
||||||
|
gdb_syscall_mode = GDB_SYS_DISABLED;
|
||||||
gdb_continue(s);
|
gdb_continue(s);
|
||||||
put_packet(s, "OK");
|
put_packet(s, "OK");
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user