This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [commit] [patch 1/2] Drop gdbtui [+doc changes]
- From: Pedro Alves <alves dot ped at gmail dot com>
- To: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- Cc: Tom Tromey <tromey at redhat dot com>, Pierre Muller <pierre dot muller at ics-cnrs dot unistra dot fr>, 'Joel Brobecker' <brobecker at adacore dot com>, gdb-patches at sourceware dot org, 'Sergio Durigan' <sdurigan at redhat dot com>, 'Kai Tietz' <ktietz at redhat dot com>
- Date: Mon, 02 Jan 2012 13:03:15 +0000
- Subject: Re: [commit] [patch 1/2] Drop gdbtui [+doc changes]
- References: <20111221114641.GB25652@host2.jankratochvil.net> <20111221122330.GH23376@adacore.com> <20111221142328.GA8079@host2.jankratochvil.net> <005b01ccbfec$97428d50$c5c7a7f0$@muller@ics-cnrs.unistra.fr> <20111221143139.GA12714@host2.jankratochvil.net> <m3bor1degn.fsf@fleche.redhat.com> <20111221223523.GA14268@host2.jankratochvil.net> <20120102023006.GA15664@host2.jankratochvil.net>
On 01/02/2012 02:30 AM, Jan Kratochvil wrote:
--- src/gdb/main.c 2011/11/05 17:08:30 1.97
+++ src/gdb/main.c 2012/01/02 02:28:58 1.98
@@ -380,7 +380,7 @@
this captured main, or one specified by the user at start up, or
the console. Initialize the interpreter to the one requested by
the application. */
- interpreter_p = xstrdup (context->interpreter_p);
+ interpreter_p = xstrdup (INTERP_CONSOLE);
/* Parse arguments and options. */
{
--- src/gdb/main.h 2011/01/01 15:33:10 1.12
+++ src/gdb/main.h 2012/01/02 02:28:58 1.13
@@ -26,7 +26,6 @@
int argc;
char **argv;
int use_windows;
- const char *interpreter_p;
};
This breaks 'insight' the binary, which similarly to gdbtui,
starts gdb with the "insight" interpreter.
gdbtk-main.c:
int
main (int argc, char **argv)
{
struct captured_main_args args;
memset (&args, 0, sizeof args);
args.argc = argc;
args.argv = argv;
args.use_windows = 1;
args.interpreter_p = "insight";
return gdb_main (&args);
}
--
Pedro Alves