From 5c51acfcce1e1ed997e3c2504c2a93a9ad16015e Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Tue, 16 Aug 2022 09:31:33 -0600 Subject: Don't allow new-ui to start the TUI The TUI can't really work properly with new-ui, at least not as currently written. This patch changes new-ui to reject an attempt. Attempting to make a DAP ui this way is also now rejected. Regression tested on x86-64 Fedora 38. Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=29273 Approved-By: Andrew Burgess --- gdb/python/py-dap.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gdb/python/py-dap.c') diff --git a/gdb/python/py-dap.c b/gdb/python/py-dap.c index 861514d..d5555c9 100644 --- a/gdb/python/py-dap.c +++ b/gdb/python/py-dap.c @@ -62,6 +62,9 @@ public: void pre_command_loop () override; + bool supports_new_ui () const override + { return false; } + private: std::unique_ptr m_ui_out; -- cgit v1.1