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

Pedro Alves alves.ped@gmail.com
Mon Jan 2 13:03:00 GMT 2012


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



More information about the Gdb-patches mailing list