summaryrefslogtreecommitdiff
path: root/gdb/tui
diff options
context:
space:
mode:
authorAndrew Stubbs <andrew.stubbs@st.com>2005-11-07 13:40:08 +0000
committerAndrew Stubbs <andrew.stubbs@st.com>2005-11-07 13:40:08 +0000
commit0acb0fc026f688bdfda965b5c9d3d0af04c04a8a (patch)
treed9ca6b6581d017c0baa5f2634692a4f87f1ccdb7 /gdb/tui
parent675dff2dea6a994b053bccf980da5fa751ba1a51 (diff)
downloadgdb-0acb0fc026f688bdfda965b5c9d3d0af04c04a8a.tar.gz
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/tui')
-rw-r--r--gdb/tui/tui-interp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/tui/tui-interp.c b/gdb/tui/tui-interp.c
index 17dda51d8ca..aeb204740b8 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);
}
}