Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [gdbserver/win32] (2/11) Don't fetch registers from a dead inferior
@ 2007-11-12  2:06 Pedro Alves
  2007-12-01 18:51 ` Daniel Jacobowitz
  0 siblings, 1 reply; 3+ messages in thread
From: Pedro Alves @ 2007-11-12  2:06 UTC (permalink / raw)
  To: gdb-patches, Lerele

[-- Attachment #1: Type: text/plain, Size: 136 bytes --]

Hi,

Noticed this when adding a few warnings.  We shouldn't
fetch thread contexts after the inferior has exited.

Cheers,
Pedro Alves



[-- Attachment #2: gdbserver_exited_dontfetch.diff --]
[-- Type: text/x-diff, Size: 721 bytes --]

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:



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-12-03  3:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-11-12  2:06 [gdbserver/win32] (2/11) Don't fetch registers from a dead inferior Pedro Alves
2007-12-01 18:51 ` Daniel Jacobowitz
2007-12-03  3:53   ` Pedro Alves

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox