]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* tui-hooks.c (tui_init_hook): Don't enable the TUI if a specific
authorStephane Carrez <stcarrez@nerim.fr>
Thu, 21 Nov 2002 21:25:41 +0000 (21:25 +0000)
committerStephane Carrez <stcarrez@nerim.fr>
Thu, 21 Nov 2002 21:25:41 +0000 (21:25 +0000)
interpreter is installed.

gdb/tui/ChangeLog
gdb/tui/tui-hooks.c

index c47aa8065417cd4412df73bf2f55a06619a3d17c..84afb773fd10415d1e516f151c7d286aba2fea0b 100644 (file)
@@ -1,3 +1,8 @@
+2002-11-21  Stephane Carrez  <stcarrez@nerim.fr>
+
+       * tui-hooks.c (tui_init_hook): Don't enable the TUI if a specific
+       interpreter is installed.
+
 2002-10-26  Stephane Carrez  <stcarrez@nerim.fr>
 
        * 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.
index 3beca39c782dba4677fd8ecd1c4297960d9fb25d..f8beed687def5997432fcc9eddc6f47147342c7a 100644 (file)
@@ -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);