aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorAndrew Stubbs <andrew.stubbs@st.com>2005-11-07 12:46:38 +0000
committerAndrew Stubbs <andrew.stubbs@st.com>2005-11-07 12:46:38 +0000
commitcc4349edfd544f63fe931d25f50f79bf1a5747f4 (patch)
tree8fb5bddca9359c9d7a072f4fb36483be2e88680e /gdb
parent5ca0ee011b4dec43633a4e174d3d0ac85add12a4 (diff)
downloadgdb-cc4349edfd544f63fe931d25f50f79bf1a5747f4.zip
gdb-cc4349edfd544f63fe931d25f50f79bf1a5747f4.tar.gz
gdb-cc4349edfd544f63fe931d25f50f79bf1a5747f4.tar.bz2
2005-11-07 Andrew Stubbs <andrew.stubbs@st.com>
* main.c (main): Use INTERP_TUI instead of "tui". Set interpreter to INTERP_INSIGHT when '-w' given. * interps.h (INTERP_INSIGHT): New define. * tui/tui-interp.c (_initialize_tui_interp): Use INTERP_TUI instead of "tui".
Diffstat (limited to 'gdb')
-rw-r--r--gdb/interps.h1
-rw-r--r--gdb/main.c7
-rw-r--r--gdb/tui/tui-interp.c6
3 files changed, 10 insertions, 4 deletions
diff --git a/gdb/interps.h b/gdb/interps.h
index 858c1e4..4d0250e 100644
--- a/gdb/interps.h
+++ b/gdb/interps.h
@@ -76,5 +76,6 @@ extern void clear_interpreter_hooks (void);
#define INTERP_MI3 "mi3"
#define INTERP_MI "mi"
#define INTERP_TUI "tui"
+#define INTERP_INSIGHT "insight"
#endif
diff --git a/gdb/main.c b/gdb/main.c
index 486b0ac..05d1d5f 100644
--- a/gdb/main.c
+++ b/gdb/main.c
@@ -350,11 +350,16 @@ captured_main (void *data)
case OPT_TUI:
/* --tui is equivalent to -i=tui. */
xfree (interpreter_p);
- interpreter_p = xstrdup ("tui");
+ interpreter_p = xstrdup (INTERP_TUI);
break;
case OPT_WINDOWS:
/* FIXME: cagney/2003-03-01: Not sure if this option is
actually useful, and if it is, what it should do. */
+#ifdef GDBTK
+ /* --windows is equivalent to -i=insight. */
+ xfree (interpreter_p);
+ interpreter_p = xstrdup (INTERP_INSIGHT);
+#endif
use_windows = 1;
break;
case OPT_NOWINDOWS:
diff --git a/gdb/tui/tui-interp.c b/gdb/tui/tui-interp.c
index 17dda51..aeb2047 100644
--- a/gdb/tui/tui-interp.c
+++ b/gdb/tui/tui-interp.c
@@ -199,13 +199,13 @@ _initialize_tui_interp (void)
/* Create a default uiout builder for the TUI. */
tui_out = tui_out_new (gdb_stdout);
- interp_add (interp_new ("tui", NULL, tui_out, &procs));
- if (interpreter_p && strcmp (interpreter_p, "tui") == 0)
+ interp_add (interp_new (INTERP_TUI, NULL, tui_out, &procs));
+ if (interpreter_p && strcmp (interpreter_p, INTERP_TUI) == 0)
tui_start_enabled = 1;
if (interpreter_p && strcmp (interpreter_p, INTERP_CONSOLE) == 0)
{
xfree (interpreter_p);
- interpreter_p = xstrdup ("tui");
+ interpreter_p = xstrdup (INTERP_TUI);
}
}