mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 01:07:52 +00:00
Make the stop_soon global be per-inferior instead.
* infcmd.c (attach_command_post_wait): Adjust. (attach_command): Likewise. * inferior.h (stop_soon): Delete. (struct inferior): Add stop_soon member. * infrun.c (stop_soon): Delete. (clear_proceed_status, start_remote) (fetch_inferior_event, handle_inferior_event): Adjust. (signal_stop_state): Don't check stop_soon here. Check in callers instead. (save_inferior_status, restore_inferior_status): Adjust. * linux-nat.c (linux_nat_resume, linux_nat_wait): Always pass signals to common code if starting up the inferior. * inferior.h (struct inferior_info): Added stop_soon member. * inferior.c (add_inferior) Clear stop_soon. * mips-tdep.c (heuristic_proc_start): Adjust. * nto-procfs.c (procfs_create_inferior): Adjust. * solib-irix.c (irix_solib_create_inferior_hook): Adjust. * solib-osf.c (osf_solib_create_inferior_hook): Adjust. * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust. * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust. * win32-nat.c (do_initial_win32_stuff): Adjust. * alpha-tdep.c (alpha_heuristic_proc_start): Adjust.
This commit is contained in:
@@ -307,6 +307,7 @@ osf_clear_solib (void)
|
||||
static void
|
||||
osf_solib_create_inferior_hook (void)
|
||||
{
|
||||
struct inferior *inf;
|
||||
struct thread_info *tp;
|
||||
|
||||
/* If we are attaching to the inferior, the shared libraries
|
||||
@@ -333,9 +334,10 @@ osf_solib_create_inferior_hook (void)
|
||||
if (!target_can_run (¤t_target))
|
||||
return;
|
||||
|
||||
inf = current_inferior ();
|
||||
tp = inferior_thread ();
|
||||
clear_proceed_status ();
|
||||
stop_soon = STOP_QUIETLY;
|
||||
inf->stop_soon = STOP_QUIETLY;
|
||||
tp->stop_signal = TARGET_SIGNAL_0;
|
||||
do
|
||||
{
|
||||
@@ -351,7 +353,7 @@ osf_solib_create_inferior_hook (void)
|
||||
Delaying the resetting of stop_soon until after symbol loading
|
||||
suppresses the warning. */
|
||||
solib_add ((char *) 0, 0, (struct target_ops *) 0, auto_solib_add);
|
||||
stop_soon = NO_STOP_QUIETLY;
|
||||
inf->stop_soon = NO_STOP_QUIETLY;
|
||||
}
|
||||
|
||||
/* target_so_ops callback. Do additional symbol handling, lookup, etc. after
|
||||
|
||||
Reference in New Issue
Block a user