OSDN Git Service

Make the stop_soon global be per-inferior instead.
authorPedro Alves <pedro@codesourcery.com>
Mon, 22 Sep 2008 15:20:07 +0000 (15:20 +0000)
committerPedro Alves <pedro@codesourcery.com>
Mon, 22 Sep 2008 15:20:07 +0000 (15:20 +0000)
commit568e9e39904b5b1efd61d5252a8a2ead8aa15f35
tree69b1fc592872d95785298e6b2f45e89c1a6a0abd
parentb34f362bd3708bb786d64dc819ad2b4b1f84f55f
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.
14 files changed:
gdb/ChangeLog
gdb/alpha-tdep.c
gdb/infcmd.c
gdb/inferior.c
gdb/inferior.h
gdb/infrun.c
gdb/linux-nat.c
gdb/mips-tdep.c
gdb/nto-procfs.c
gdb/solib-irix.c
gdb/solib-osf.c
gdb/solib-sunos.c
gdb/solib-svr4.c
gdb/win32-nat.c