aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdb/cli/cli-interp.c4
-rw-r--r--gdb/command.h3
-rw-r--r--gdb/tui/tui-interp.c4
3 files changed, 11 insertions, 0 deletions
diff --git a/gdb/cli/cli-interp.c b/gdb/cli/cli-interp.c
index eb1edcc..dd56e12 100644
--- a/gdb/cli/cli-interp.c
+++ b/gdb/cli/cli-interp.c
@@ -127,6 +127,10 @@ cli_on_normal_stop (struct bpstat *bs, int print_frame)
if (!print_frame)
return;
+ /* This event is suppressed. */
+ if (cli_suppress_notification.normal_stop)
+ return;
+
SWITCH_THRU_ALL_UIS ()
{
struct interp *interp = top_level_interpreter ();
diff --git a/gdb/command.h b/gdb/command.h
index 258ec38..cd79814 100644
--- a/gdb/command.h
+++ b/gdb/command.h
@@ -379,6 +379,9 @@ struct cli_suppress_notification
{
/* Inferior, thread, frame selected notification suppressed? */
bool user_selected_context = false;
+
+ /* Normal stop event suppressed? */
+ bool normal_stop = false;
};
extern struct cli_suppress_notification cli_suppress_notification;
diff --git a/gdb/tui/tui-interp.c b/gdb/tui/tui-interp.c
index 9b92194..e867441 100644
--- a/gdb/tui/tui-interp.c
+++ b/gdb/tui/tui-interp.c
@@ -84,6 +84,10 @@ tui_on_normal_stop (struct bpstat *bs, int print_frame)
if (!print_frame)
return;
+ /* This event is suppressed. */
+ if (cli_suppress_notification.normal_stop)
+ return;
+
SWITCH_THRU_ALL_UIS ()
{
struct interp *interp = top_level_interpreter ();