summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephane Carrez <stcarrez@nerim.fr>2002-11-21 21:25:22 +0000
committerStephane Carrez <stcarrez@nerim.fr>2002-11-21 21:25:22 +0000
commita0c83553ca2466188fdbf342f38fa7cc147f00cb (patch)
treee81e9c488a36714503885eb5fae5d2582558836b
parenteb54099b28cef97140cb2d0203000db712b5724d (diff)
downloadgdb-a0c83553ca2466188fdbf342f38fa7cc147f00cb.tar.gz
* tui-hooks.c (tui_init_hook): Don't enable the TUI if a specific
interpreter is installed.
-rw-r--r--gdb/tui/ChangeLog5
-rw-r--r--gdb/tui/tui-hooks.c4
2 files changed, 9 insertions, 0 deletions
diff --git a/gdb/tui/ChangeLog b/gdb/tui/ChangeLog
index 12179601e58..2ed06f3eb04 100644
--- a/gdb/tui/ChangeLog
+++ b/gdb/tui/ChangeLog
@@ -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
diff --git a/gdb/tui/tui-hooks.c b/gdb/tui/tui-hooks.c
index e1aad9f03b3..e1c4c126c7b 100644
--- a/gdb/tui/tui-hooks.c
+++ b/gdb/tui/tui-hooks.c
@@ -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);