From 347bddb745acda8fb591511a547e66bbe00d768b Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Mon, 8 Sep 2008 21:46:21 +0000 Subject: * 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. --- gdb/gdbthread.h | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'gdb/gdbthread.h') diff --git a/gdb/gdbthread.h b/gdb/gdbthread.h index 953a1d2..82f1258 100644 --- a/gdb/gdbthread.h +++ b/gdb/gdbthread.h @@ -146,8 +146,9 @@ struct thread_info int step_multi; enum target_signal stop_signal; - /* Used in continue_command to set the proceed count of the - breakpoint the thread stopped at. */ + + /* Chain containing status of breakpoint(s) the thread stopped + at. */ bpstat stop_bpstat; /* Private data used by the target vector implementation. */ @@ -221,8 +222,7 @@ extern void 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); /* infrun context switch: load the debugger state previously saved for the given thread. */ @@ -232,8 +232,7 @@ extern void 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); /* Switch from one thread to another. */ extern void switch_to_thread (ptid_t ptid); -- cgit v1.1