From: Pedro Alves Date: Sun, 2 Dec 2007 23:40:17 +0000 (+0000) Subject: * win32-low.c (win32_wait): Don't read from the inferior when it X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e7b5fa67ed43850d6e993ec8ca8c4b23d018d121;p=binutils-gdb.git * win32-low.c (win32_wait): Don't read from the inferior when it has already exited. --- diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index 2efbeb034ec..09a46d4bb2f 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,3 +1,8 @@ +2007-12-02 Pedro Alves + + * win32-low.c (win32_wait): Don't read from the inferior when it + has already exited. + 2007-12-02 Pedro Alves * Makefile.in (win32_low_h): New variable. diff --git a/gdb/gdbserver/win32-low.c b/gdb/gdbserver/win32-low.c index 1d3c61766d6..188d5554f58 100644 --- a/gdb/gdbserver/win32-low.c +++ b/gdb/gdbserver/win32-low.c @@ -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: