Browse Source

* main.c (captured_main): Recognize -tui option and print an error

message when the TUI is not configured.
binutils-2_18-branch
Bob Wilson 20 years ago
parent
commit
b0da54f118
  1. 5
      gdb/ChangeLog
  2. 9
      gdb/main.c

5
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> 2007-05-09 Andreas Schwab <schwab@suse.de>
* mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Don't * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Don't

9
gdb/main.c

@ -298,9 +298,7 @@ captured_main (void *data)
}; };
static struct option long_options[] = static struct option long_options[] =
{ {
#if defined(TUI)
{"tui", no_argument, 0, OPT_TUI}, {"tui", no_argument, 0, OPT_TUI},
#endif
{"xdb", no_argument, &xdb_commands, 1}, {"xdb", no_argument, &xdb_commands, 1},
{"dbx", no_argument, &dbx_commands, 1}, {"dbx", no_argument, &dbx_commands, 1},
{"readnow", no_argument, &readnow_symbol_files, 1}, {"readnow", no_argument, &readnow_symbol_files, 1},
@ -398,8 +396,15 @@ captured_main (void *data)
break; break;
case OPT_TUI: case OPT_TUI:
/* --tui is equivalent to -i=tui. */ /* --tui is equivalent to -i=tui. */
#ifdef TUI
xfree (interpreter_p); xfree (interpreter_p);
interpreter_p = xstrdup (INTERP_TUI); interpreter_p = xstrdup (INTERP_TUI);
#else
fprintf_unfiltered (gdb_stderr,
_("%s: TUI mode is not supported\n"),
argv[0]);
exit (1);
#endif
break; break;
case OPT_WINDOWS: case OPT_WINDOWS:
/* FIXME: cagney/2003-03-01: Not sure if this option is /* FIXME: cagney/2003-03-01: Not sure if this option is

Loading…
Cancel
Save