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:
parent
82f7388440
commit
d6b48e9c8b
15 changed files with 137 additions and 42 deletions
|
@ -1523,6 +1523,7 @@ do_initial_win32_stuff (DWORD pid)
|
|||
{
|
||||
extern int stop_after_trap;
|
||||
int i;
|
||||
struct inferior *inf;
|
||||
struct thread_info *tp;
|
||||
|
||||
last_sig = TARGET_SIGNAL_0;
|
||||
|
@ -1544,12 +1545,12 @@ do_initial_win32_stuff (DWORD pid)
|
|||
clear_proceed_status ();
|
||||
init_wait_for_inferior ();
|
||||
|
||||
add_inferior (pid);
|
||||
inf = add_inferior (pid);
|
||||
|
||||
terminal_init_inferior_with_pgrp (pid);
|
||||
target_terminal_inferior ();
|
||||
|
||||
stop_soon = STOP_QUIETLY;
|
||||
inf->stop_soon = STOP_QUIETLY;
|
||||
while (1)
|
||||
{
|
||||
stop_after_trap = 1;
|
||||
|
@ -1561,7 +1562,7 @@ do_initial_win32_stuff (DWORD pid)
|
|||
break;
|
||||
}
|
||||
|
||||
stop_soon = NO_STOP_QUIETLY;
|
||||
inf->stop_soon = NO_STOP_QUIETLY;
|
||||
stop_after_trap = 0;
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue