OSDN Git Service

* inferior.h (stop_bpstat): Delete.
authorPedro Alves <pedro@codesourcery.com>
Mon, 8 Sep 2008 21:46:21 +0000 (21:46 +0000)
committerPedro Alves <pedro@codesourcery.com>
Mon, 8 Sep 2008 21:46:21 +0000 (21:46 +0000)
commit8e8a9c178a2794662975e1aaa92024c92622230f
tree544e7ae3ee61ec4fb9ca4b88a8dcf4832ce6aa8d
parent5e291f9222009c70187d6c77f5e4e6edbd53e221
* inferior.h (stop_bpstat): Delete.

* breakpoint.h (bpstat_do_actions): Remove bpstat* argument.

* breakpoint.c (bpstat_do_actions): Rename to ...
(bpstat_do_actions_1): ... this.  Make static.  Change return type
to int.  Return true if a breakpoint proceeded.
(bpstat_do_actions): New, as wrapper around bpstat_do_actions_1.
(delete_breakpoint): Don't reference the global stop_bpstat; it's
gone.

* gdbthread.h (struct thread_info): Add stop_bpstat.
(save_infrun_state, load_infrun_state): Remove stop_bpstat
argument.
* thread.c (load_infrun_state, save_infrun_state): Remove
stop_bpstat argument, and the code referencing it.

* infcall.c: Include "gdbthread.h".
(call_function_by_hand): Adjust.
* exceptions.c: Include "gdbthread.h".
(throw_exception): Adjust.
* infcmd.c (stop_bpstat): Delete.
(continue_command): In all-stop, set the ignore count on the
thread that reported the stop.  In non-stop, set it on the current
thread.
(finish_command_continuation): Adjust.
(program_info): Adjust.
* infrun.c (clear_proceed_status): Adjust.
(context_switch): Don't context-switch stop_bpstat.
(handle_inferior_event): Adjust.
(normal_stop): Adjust.
(save_inferior_status, restore_inferior_status): Adjust.

* inf-loop.c (inferior_event_handler): Remove parameter to
bpstat_do_actions call.
* top.c (command_loop): Remove parameter to bpstat_do_actions
call.  Call it unconditionally.
* event-top.c (command_handler): Ditto.
* python/python.c (execute_gdb_command): Ditto.
14 files changed:
gdb/ChangeLog
gdb/breakpoint.c
gdb/breakpoint.h
gdb/event-top.c
gdb/exceptions.c
gdb/gdbthread.h
gdb/inf-loop.c
gdb/infcall.c
gdb/infcmd.c
gdb/inferior.h
gdb/infrun.c
gdb/python/python.c
gdb/thread.c
gdb/top.c