From: Bob Wilson <bwilson@tensilica.com>
To: gdb-patches@sources.redhat.com
Subject: [PATCH] print message when TUI not configured
Date: Wed, 09 May 2007 21:36:00 -0000 [thread overview]
Message-ID: <46423EBE.3040902@tensilica.com> (raw)
In-Reply-To: <46423E53.70803@tensilica.com>
[-- Attachment #1: Type: text/plain, Size: 208 bytes --]
Oops. I forgot to attach the patch. Here it is:
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.
[-- Attachment #2: gdb-tui-option.patch --]
[-- Type: text/x-diff, Size: 947 bytes --]
Index: main.c
===================================================================
RCS file: /cvs/src/src/gdb/main.c,v
retrieving revision 1.62
diff -u -r1.62 main.c
--- main.c 9 Jan 2007 21:34:29 -0000 1.62
+++ main.c 9 May 2007 21:21:33 -0000
@@ -298,9 +298,7 @@
};
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 @@
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
next prev parent reply other threads:[~2007-05-09 21:36 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-09 21:34 Bob Wilson
2007-05-09 21:36 ` Bob Wilson [this message]
2007-05-09 21:42 ` Daniel Jacobowitz
2007-05-11 17:59 ` Eli Zaretskii
2007-05-11 18:10 ` Bob Wilson
2007-05-11 18:29 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=46423EBE.3040902@tensilica.com \
--to=bwilson@tensilica.com \
--cc=gdb-patches@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox