forked from Imagelibrary/binutils-gdb
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 <aburgess@redhat.com>
This commit is contained in:
@@ -1147,7 +1147,7 @@ captured_main_1 (struct captured_main_args *context)
|
||||
|
||||
/* Install the default UI. All the interpreters should have had a
|
||||
look at things by now. Initialize the default interpreter. */
|
||||
set_top_level_interpreter (interpreter_p.c_str ());
|
||||
set_top_level_interpreter (interpreter_p.c_str (), false);
|
||||
|
||||
/* The interpreter should have installed the real uiout by now. */
|
||||
gdb_assert (current_uiout != temp_uiout.get ());
|
||||
|
||||
Reference in New Issue
Block a user