aboutsummaryrefslogtreecommitdiff
path: root/gdb/tui
diff options
context:
space:
mode:
authorTankut Baris Aktemur <tankut.baris.aktemur@intel.com>2022-02-07 08:26:56 +0100
committerTankut Baris Aktemur <tankut.baris.aktemur@intel.com>2022-02-07 08:26:56 +0100
commit2b826f759256b77b447da9831b079e32a7bb0cdb (patch)
treee0146d502f1893fc53fe727c3a7ce68ace42e794 /gdb/tui
parentf36c8918018ae5036fafafd76df71084fc50a5a9 (diff)
downloadfsf-binutils-gdb-2b826f759256b77b447da9831b079e32a7bb0cdb.zip
fsf-binutils-gdb-2b826f759256b77b447da9831b079e32a7bb0cdb.tar.gz
fsf-binutils-gdb-2b826f759256b77b447da9831b079e32a7bb0cdb.tar.bz2
gdb/cli: add a 'normal_stop' option to 'cli_suppress_notification'
Extend the 'cli_suppress_notification' struct with a new field, 'normal_stop', that can be used for checking if printing normal stop events on the CLI should be suppressed. This patch only introduces the flag. The subsequent patch adds a user command to turn the flag off/on.
Diffstat (limited to 'gdb/tui')
-rw-r--r--gdb/tui/tui-interp.c4
1 files changed, 4 insertions, 0 deletions
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 ();