diff options
author | Tom Tromey <tromey@adacore.com> | 2024-09-25 08:27:51 -0600 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2024-11-01 11:06:47 -0600 |
commit | 76367d23146136b457b1494285b807437a9fec60 (patch) | |
tree | 29cec25266e8d522ba7a135659699542885af03d /gdb/observable.h | |
parent | 893e4fd6231922495175b701a6c44b665e91cd7e (diff) | |
download | gdb-76367d23146136b457b1494285b807437a9fec60.zip gdb-76367d23146136b457b1494285b807437a9fec60.tar.gz gdb-76367d23146136b457b1494285b807437a9fec60.tar.bz2 |
Add gdb.events.tui_enabled
This adds a new event source so that Python scripts can track whether
or not the TUI is presently enabled.
v2 of the patch renames "status" -> "enabled".
Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=32162
Reviewed-By: Eli Zaretskii <eliz@gnu.org>
Reviewed-by: Keith Seitz <keiths@redhat.com>
Diffstat (limited to 'gdb/observable.h')
-rw-r--r-- | gdb/observable.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/observable.h b/gdb/observable.h index 2aa3ef3..06c0cf1 100644 --- a/gdb/observable.h +++ b/gdb/observable.h @@ -253,6 +253,8 @@ extern observable <program_space */* pspace */> new_program_space; /* The program space PSPACE is about to be deleted. */ extern observable <program_space */* pspace */> free_program_space; +extern observable<bool /* enabled */> tui_enabled; + } /* namespace observers */ } /* namespace gdb */ |