mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-24 20:28:28 +08:00
* linux-low.c (linux_wait_for_process): Don't clobber current_inferior
in debugging printf.
This commit is contained in:
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user