* win32-low.c (win32_wait): Don't read from the inferior when it
authorPedro Alves <palves@redhat.com>
Sun, 2 Dec 2007 23:40:17 +0000 (23:40 +0000)
committerPedro Alves <palves@redhat.com>
Sun, 2 Dec 2007 23:40:17 +0000 (23:40 +0000)
has already exited.

gdb/gdbserver/ChangeLog
gdb/gdbserver/win32-low.c

index 2efbeb034eccdf39a33d89b26c3c8b6681d213f6..09a46d4bb2fc57cde376bd14fec843a13907d6d6 100644 (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.
index 1d3c61766d62ca9b0a29cf31277c0b3030eec1f6..188d5554f584afe1ff1388fac35f3a51dc05d197 100644 (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: