This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [commit] [patch 1/2] Drop gdbtui [+doc changes]


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]