diff options
author | Andrew Stubbs <andrew.stubbs@st.com> | 2005-11-07 12:46:38 +0000 |
---|---|---|
committer | Andrew Stubbs <andrew.stubbs@st.com> | 2005-11-07 12:46:38 +0000 |
commit | cc4349edfd544f63fe931d25f50f79bf1a5747f4 (patch) | |
tree | 8fb5bddca9359c9d7a072f4fb36483be2e88680e /gdb/main.c | |
parent | 5ca0ee011b4dec43633a4e174d3d0ac85add12a4 (diff) | |
download | gdb-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/main.c')
-rw-r--r-- | gdb/main.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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: |