X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=gdb%2Fgdbserver%2Flinux-low.c;h=2bc91c276d6c4fd4ba7b4c60847357f000a0e79f;hb=f0db101d9897732d6556456e542d12ecf9e12e42;hp=c37c6d2f3d533cdf27dffcb7f550650d292bc289;hpb=2d7711a36720b0bc44fee20d0bf057614ead21c2;p=binutils-gdb.git diff --git a/gdb/gdbserver/linux-low.c b/gdb/gdbserver/linux-low.c index c37c6d2f3d5..2bc91c276d6 100644 --- a/gdb/gdbserver/linux-low.c +++ b/gdb/gdbserver/linux-low.c @@ -3617,18 +3617,10 @@ wait_for_sigstop (void) if (debug_threads) debug_printf ("Previously current thread died.\n"); - if (non_stop) - { - /* We can't change the current inferior behind GDB's back, - otherwise, a subsequent command may apply to the wrong - process. */ - current_thread = NULL; - } - else - { - /* Set a valid thread as current. */ - set_desired_thread (0); - } + /* We can't change the current inferior behind GDB's back, + otherwise, a subsequent command may apply to the wrong + process. */ + current_thread = NULL; } }