* win32-low.c (win32_wait): Don't read from the inferior when it

has already exited.
This commit is contained in:
Pedro Alves 2007-12-02 23:40:17 +00:00
parent a385171d78
commit e7b5fa67ed
2 changed files with 5 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
* win32-low.c (win32_wait): Don't read from the inferior when it
has already exited.
2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
* Makefile.in (win32_low_h): New variable.

View File

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