This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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:



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]