mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-21 10:34:21 +08:00
* linux-low.c (linux_wait_for_process): Don't clobber current_inferior
in debugging printf.
This commit is contained in:
@ -1,5 +1,8 @@
|
|||||||
2008-12-12 Doug Evans <dje@google.com>
|
2008-12-12 Doug Evans <dje@google.com>
|
||||||
|
|
||||||
|
* linux-low.c (linux_wait_for_process): Don't clobber current_inferior
|
||||||
|
in debugging printf.
|
||||||
|
|
||||||
* linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
|
* linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
|
||||||
|
|
||||||
2008-12-09 Doug Evans <dje@google.com>
|
2008-12-09 Doug Evans <dje@google.com>
|
||||||
|
@ -642,11 +642,13 @@ retry:
|
|||||||
if (debug_threads
|
if (debug_threads
|
||||||
&& WIFSTOPPED (*wstatp))
|
&& WIFSTOPPED (*wstatp))
|
||||||
{
|
{
|
||||||
|
struct thread_info *saved_inferior = current_inferior;
|
||||||
current_inferior = (struct thread_info *)
|
current_inferior = (struct thread_info *)
|
||||||
find_inferior_id (&all_threads, (*childp)->lwpid);
|
find_inferior_id (&all_threads, (*childp)->lwpid);
|
||||||
/* For testing only; i386_stop_pc prints out a diagnostic. */
|
/* For testing only; i386_stop_pc prints out a diagnostic. */
|
||||||
if (the_low_target.get_pc != NULL)
|
if (the_low_target.get_pc != NULL)
|
||||||
get_stop_pc ();
|
get_stop_pc ();
|
||||||
|
current_inferior = saved_inferior;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user