From: Stephane Carrez Date: Thu, 21 Nov 2002 21:25:41 +0000 (+0000) Subject: * tui-hooks.c (tui_init_hook): Don't enable the TUI if a specific X-Git-Tag: gdb_5_3-2002-12-12-release~47 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=36327c9e09510521a66fc3f19ed2ae93982c08f7;p=thirdparty%2Fbinutils-gdb.git * tui-hooks.c (tui_init_hook): Don't enable the TUI if a specific interpreter is installed. --- 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);