diff options
author | Doug Evans <dje@google.com> | 2008-12-12 23:14:28 +0000 |
---|---|---|
committer | Doug Evans <dje@google.com> | 2008-12-12 23:14:28 +0000 |
commit | 896c7fbbd4caa95187e54d276eb6b40e5c62a174 (patch) | |
tree | fd762363865a52df00e85eba69d73280987838cc /gdb/gdbserver/linux-low.c | |
parent | 97438e3f624ad5dd2155cf68ecb7735bf11dc81f (diff) | |
download | gdb-896c7fbbd4caa95187e54d276eb6b40e5c62a174.zip gdb-896c7fbbd4caa95187e54d276eb6b40e5c62a174.tar.gz gdb-896c7fbbd4caa95187e54d276eb6b40e5c62a174.tar.bz2 |
* linux-low.c (linux_wait_for_process): Don't clobber current_inferior
in debugging printf.
Diffstat (limited to 'gdb/gdbserver/linux-low.c')
-rw-r--r-- | gdb/gdbserver/linux-low.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/gdbserver/linux-low.c b/gdb/gdbserver/linux-low.c index 4a6acd8..24ac484 100644 --- a/gdb/gdbserver/linux-low.c +++ b/gdb/gdbserver/linux-low.c @@ -642,11 +642,13 @@ retry: if (debug_threads && WIFSTOPPED (*wstatp)) { + struct thread_info *saved_inferior = current_inferior; current_inferior = (struct thread_info *) find_inferior_id (&all_threads, (*childp)->lwpid); /* For testing only; i386_stop_pc prints out a diagnostic. */ if (the_low_target.get_pc != NULL) get_stop_pc (); + current_inferior = saved_inferior; } } |