This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[gdbserver/win32] (2/11) Don't fetch registers from a dead inferior
- From: Pedro Alves <pedro_alves at portugalmail dot pt>
- To: gdb-patches at sourceware dot org, Lerele <lerele at champenstudios dot com>
- Date: Mon, 12 Nov 2007 02:06:46 +0000
- Subject: [gdbserver/win32] (2/11) Don't fetch registers from a dead inferior
Hi,
Noticed this when adding a few warnings. We shouldn't
fetch thread contexts after the inferior has exited.
Cheers,
Pedro Alves
2007-11-12 Pedro Alves <pedro_alves@portugalmail.pt>
* win32-low.c (win32_wait): Don't read from the inferior when it
has already exited.
---
gdb/gdbserver/win32-low.c | 3 ---
1 file changed, 3 deletions(-)
Index: src/gdb/gdbserver/win32-low.c
===================================================================
--- src.orig/gdb/gdbserver/win32-low.c 2007-11-11 23:12:28.000000000 +0000
+++ src/gdb/gdbserver/win32-low.c 2007-11-11 23:15:20.000000000 +0000
@@ -1390,9 +1390,6 @@ win32_wait (char *status)
our_status.value.integer));
*status = 'W';
-
- child_fetch_inferior_registers (-1);
-
return our_status.value.integer;
case TARGET_WAITKIND_STOPPED:
case TARGET_WAITKIND_LOADED: