[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] Re: Re: [PATCH] Fix to 'gdb detach' stub

From: Daniel Gutson
Subject: [Qemu-devel] Re: Re: [PATCH] Fix to 'gdb detach' stub
Date: Fri, 26 Feb 2010 14:13:50 -0300
User-agent: Thunderbird (X11/20090817)

Hello Kevin,
        please let me know if this works.
If so, please remember that I'd need somebody to commit this for me, since I 
don't have write-access.

Undoing line wrap and tabs.


[old same text.]
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 <address@hidden>
 gdbstub.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/gdbstub.c b/gdbstub.c
index 91c5f68..92bb36d 100644
--- a/gdbstub.c
+++ b/gdbstub.c
@@ -1848,6 +1848,7 @@ static int gdb_handle_packet(GDBState *s, const char 
     case 'D':
         /* Detach packet */
+        gdb_syscall_mode = GDB_SYS_DISABLED;
         put_packet(s, "OK");

reply via email to

[Prev in Thread] Current Thread [Next in Thread]