OSDN Git Service

* 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:22 +0000 (21:25 +0000)
committerStephane Carrez <stcarrez@nerim.fr>
Thu, 21 Nov 2002 21:25:22 +0000 (21:25 +0000)
interpreter is installed.

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

index 1217960..2ed06f3 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-11-18  Andrew Cagney  <ac131313@redhat.com>
 
        * tuiStack.c (tuiShowFrameInfo): Use get_frame_type instead of
index e1aad9f..e1c4c12 100644 (file)
@@ -419,6 +419,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);