diff options
author | Pedro Alves <palves@redhat.com> | 2009-03-22 18:06:07 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2009-03-22 18:06:07 +0000 |
commit | f3b1572e1aedb92f0d7672c384de4bbc70b59757 (patch) | |
tree | 156787f18411aebdcd4ea9c7af26977336416e08 /gdb/infrun.c | |
parent | c5a4d20bb945df22e3244f60cff1860932802354 (diff) | |
download | gdb-f3b1572e1aedb92f0d7672c384de4bbc70b59757.zip gdb-f3b1572e1aedb92f0d7672c384de4bbc70b59757.tar.gz gdb-f3b1572e1aedb92f0d7672c384de4bbc70b59757.tar.bz2 |
gdb/
* mi/mi-interp.c (mi_interpreter_init): Attach mi_about_to_proceed
to the about_to_proceed observer notification.
(mi_about_to_proceed): New.
(mi_on_resume): Only output ^running and the prompt here if the
target was proceeded.
* breakpoint.c (breakpoint_proceeded): New static.
(breakpoint_about_to_proceed): New.
(_initialize_breakpoints): Attach breakpoint_about_to_proceed to
the about_to_proceed observer notification.
* inferior.h (breakpoint_proceeded): Delete declaration.
* infrun.c (clear_proceed_status): Don't set breakpoint_proceeded.
Notify the about_to_proceed observers.
(struct inferior_status): Delete breakpoint_proceeded member.
(save_inferior_status): Don't save it.
(restore_inferior_status): Don't restore it.
* mi-main.h (mi_proceeded): Declare.
* mi/mi-main.c (mi_cmd_execute): Clear mi_proceeded before running
a command.
gdb/doc/
* observer.texi (about_to_proceed): New.
Diffstat (limited to 'gdb/infrun.c')
-rw-r--r-- | gdb/infrun.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/gdb/infrun.c b/gdb/infrun.c index dfd6e71..6600bbb 100644 --- a/gdb/infrun.c +++ b/gdb/infrun.c @@ -1230,7 +1230,8 @@ clear_proceed_status (void) } stop_after_trap = 0; - breakpoint_proceeded = 1; /* We're about to proceed... */ + + observer_notify_about_to_proceed (); if (stop_registers) { @@ -5007,7 +5008,6 @@ struct inferior_status /* ID if the selected frame when the inferior function call was made. */ struct frame_id selected_frame_id; - int breakpoint_proceeded; int proceed_to_finish; int in_infcall; }; @@ -5038,7 +5038,6 @@ save_inferior_status (void) called. */ inf_status->stop_bpstat = tp->stop_bpstat; tp->stop_bpstat = bpstat_copy (tp->stop_bpstat); - inf_status->breakpoint_proceeded = breakpoint_proceeded; inf_status->proceed_to_finish = tp->proceed_to_finish; inf_status->in_infcall = tp->in_infcall; @@ -5089,7 +5088,6 @@ restore_inferior_status (struct inferior_status *inf_status) bpstat_clear (&tp->stop_bpstat); tp->stop_bpstat = inf_status->stop_bpstat; inf_status->stop_bpstat = NULL; - breakpoint_proceeded = inf_status->breakpoint_proceeded; tp->proceed_to_finish = inf_status->proceed_to_finish; tp->in_infcall = inf_status->in_infcall; |