From 36327c9e09510521a66fc3f19ed2ae93982c08f7 Mon Sep 17 00:00:00 2001 From: Stephane Carrez Date: Thu, 21 Nov 2002 21:25:41 +0000 Subject: [PATCH] * tui-hooks.c (tui_init_hook): Don't enable the TUI if a specific interpreter is installed. --- gdb/tui/ChangeLog | 7 ++++++- gdb/tui/tui-hooks.c | 4 ++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/gdb/tui/ChangeLog b/gdb/tui/ChangeLog index c47aa806541..84afb773fd1 100644 --- a/gdb/tui/ChangeLog +++ b/gdb/tui/ChangeLog @@ -1,3 +1,8 @@ +2002-11-21 Stephane Carrez + + * tui-hooks.c (tui_init_hook): Don't enable the TUI if a specific + interpreter is installed. + 2002-10-26 Stephane Carrez * tuiIO.c (tui_prep_terminal): Save the prompt registered in readline. @@ -40,7 +45,7 @@ * tui-hooks.c (tui_event_loop): New function. (tui_command_loop): New function to override gdb loop and make sure uiout is set according to TUI mode. - (tui_command_loop): Install the specific TUI command hook. + (tui_init_hook): Install the specific TUI command hook. * tuiIO.c (tui_initialize_io): Initialize tui_old_uiout. (tui_uiout, tui_old_uiout): Make public. * tuiIO.h (tui_uiout, tui_old_uiout): Declare. diff --git a/gdb/tui/tui-hooks.c b/gdb/tui/tui-hooks.c index 3beca39c782..f8beed687de 100644 --- a/gdb/tui/tui-hooks.c +++ b/gdb/tui/tui-hooks.c @@ -420,6 +420,10 @@ tui_event_loop (void) static void tui_init_hook (char *argv0) { + /* Don't enable the TUI if a specific interpreter is installed. */ + if (interpreter_p) + return; + /* Install exit handler to leave the screen in a good shape. */ atexit (tui_exit); -- 2.47.2