diff options
Diffstat (limited to 'gdb/testsuite/gdb.python/tui-window.py')
-rw-r--r-- | gdb/testsuite/gdb.python/tui-window.py | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.python/tui-window.py b/gdb/testsuite/gdb.python/tui-window.py index d031f72..d03a8ce 100644 --- a/gdb/testsuite/gdb.python/tui-window.py +++ b/gdb/testsuite/gdb.python/tui-window.py @@ -1,4 +1,4 @@ -# Copyright (C) 2020-2024 Free Software Foundation, Inc. +# Copyright (C) 2020-2025 Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -20,6 +20,9 @@ import gdb the_window = None +tui_enabled = False + + class TestWindow: def __init__(self, win): global the_window @@ -62,3 +65,11 @@ def change_window_title(): gdb.register_window_type("fail", failwin) + + +def set_tui_enabled(ev): + global tui_enabled + tui_enabled = ev.enabled + + +gdb.events.tui_enabled.connect(set_tui_enabled) |