diff options
author | Bob Wilson <bob.wilson@acm.org> | 2007-05-09 21:46:52 +0000 |
---|---|---|
committer | Bob Wilson <bob.wilson@acm.org> | 2007-05-09 21:46:52 +0000 |
commit | 221951bb8b402aebf0005b0b221da1c67ea2906e (patch) | |
tree | 8972a86a04ff4e455e288837d024f04dc5bcfdc0 /gdb/main.c | |
parent | a1beac1d85c89096c09e83c7b2929377f586df49 (diff) | |
download | gdb-221951bb8b402aebf0005b0b221da1c67ea2906e.tar.gz |
* main.c (captured_main): Recognize -tui option and print an error
message when the TUI is not configured.
Diffstat (limited to 'gdb/main.c')
-rw-r--r-- | gdb/main.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/gdb/main.c b/gdb/main.c index 7cc14adc938..b136120e409 100644 --- a/gdb/main.c +++ b/gdb/main.c @@ -298,9 +298,7 @@ captured_main (void *data) }; static struct option long_options[] = { -#if defined(TUI) {"tui", no_argument, 0, OPT_TUI}, -#endif {"xdb", no_argument, &xdb_commands, 1}, {"dbx", no_argument, &dbx_commands, 1}, {"readnow", no_argument, &readnow_symbol_files, 1}, @@ -398,8 +396,15 @@ captured_main (void *data) break; case OPT_TUI: /* --tui is equivalent to -i=tui. */ +#ifdef TUI xfree (interpreter_p); interpreter_p = xstrdup (INTERP_TUI); +#else + fprintf_unfiltered (gdb_stderr, + _("%s: TUI mode is not supported\n"), + argv[0]); + exit (1); +#endif break; case OPT_WINDOWS: /* FIXME: cagney/2003-03-01: Not sure if this option is |