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 | b0da54f118fc74f2cbd1dc007e72978719e52511 (patch) | |
tree | a8a563aff0526ca05f85dc27d23fb77871f1b391 | |
parent | 9a88e5eef4447e64d9509cee446da25d347bea55 (diff) | |
download | gdb-b0da54f118fc74f2cbd1dc007e72978719e52511.zip gdb-b0da54f118fc74f2cbd1dc007e72978719e52511.tar.gz gdb-b0da54f118fc74f2cbd1dc007e72978719e52511.tar.bz2 |
* main.c (captured_main): Recognize -tui option and print an error
message when the TUI is not configured.
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/main.c | 9 |
2 files changed, 12 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 7c0e8a8..310e648 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2007-05-09 Bob Wilson <bob.wilson@acm.org> + + * main.c (captured_main): Recognize -tui option and print an error + message when the TUI is not configured. + 2007-05-09 Andreas Schwab <schwab@suse.de> * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Don't @@ -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 |