diff options
author | Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> | 2022-02-07 08:26:56 +0100 |
---|---|---|
committer | Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> | 2022-02-07 08:26:56 +0100 |
commit | 2b826f759256b77b447da9831b079e32a7bb0cdb (patch) | |
tree | e0146d502f1893fc53fe727c3a7ce68ace42e794 /gdb/tui | |
parent | f36c8918018ae5036fafafd76df71084fc50a5a9 (diff) | |
download | gdb-2b826f759256b77b447da9831b079e32a7bb0cdb.zip gdb-2b826f759256b77b447da9831b079e32a7bb0cdb.tar.gz 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.c | 4 |
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 (); |