diff options
author | Pedro Alves <palves@redhat.com> | 2008-09-08 21:46:21 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2008-09-08 21:46:21 +0000 |
commit | 347bddb745acda8fb591511a547e66bbe00d768b (patch) | |
tree | e1ae89f31d0e51854b0454eaa75ec215a4c42191 /gdb/thread.c | |
parent | 078130d0caa5d5ec686abe6ee5589a644885082a (diff) | |
download | gdb-347bddb745acda8fb591511a547e66bbe00d768b.zip gdb-347bddb745acda8fb591511a547e66bbe00d768b.tar.gz gdb-347bddb745acda8fb591511a547e66bbe00d768b.tar.bz2 |
* 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.
Diffstat (limited to 'gdb/thread.c')
-rw-r--r-- | gdb/thread.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/gdb/thread.c b/gdb/thread.c index 875c55f..fdd7d66 100644 --- a/gdb/thread.c +++ b/gdb/thread.c @@ -448,8 +448,7 @@ load_infrun_state (ptid_t ptid, int *proceed_to_finish, int *stop_step, int *step_multi, - enum target_signal *stop_signal, - bpstat *stop_bpstat) + enum target_signal *stop_signal) { struct thread_info *tp; @@ -471,11 +470,6 @@ load_infrun_state (ptid_t ptid, *stop_step = tp->stop_step; *step_multi = tp->step_multi; *stop_signal = tp->stop_signal; - - /* Swap instead of copy, so we only have to update one of - them. */ - *stop_bpstat = tp->stop_bpstat; - tp->stop_bpstat = 0; } } @@ -488,8 +482,7 @@ save_infrun_state (ptid_t ptid, int proceed_to_finish, int stop_step, int step_multi, - enum target_signal stop_signal, - bpstat stop_bpstat) + enum target_signal stop_signal) { struct thread_info *tp; @@ -509,7 +502,6 @@ save_infrun_state (ptid_t ptid, tp->stop_step = stop_step; tp->step_multi = step_multi; tp->stop_signal = stop_signal; - tp->stop_bpstat = stop_bpstat; } } |