RFA/RFC: Patch: make `inferior_args' visible to gdbtk (2nd try)

Andrew Cagney ac131313@cygnus.com
Wed Dec 13 19:24:00 GMT 2000


Fernando Nasser wrote:

>   /* This function detects whether or not a '&' character (indicating
>      background execution) has been added as *the last* of the arguments ARGS
>      of a command. If it has, it removes it and returns 1. Otherwise it
> *************** Register name as argument means describe
> *** 1944,1950 ****
>     add_info ("float", float_info,
>             "Print the status of the floating point unit\n");
> 
> !   inferior_args = savestring ("", 1); /* Initially no args */
>     inferior_environ = make_environ ();
>     init_environ (inferior_environ);
>   }
> --- 1961,1967 ----
>     add_info ("float", float_info,
>             "Print the status of the floating point unit\n");
> 
> !   set_inferior_args (savestring ("", 1));     /* Initially no args */
>     inferior_environ = make_environ ();
>     init_environ (inferior_environ);
>   }

I suspect you mean xstrdup() :-)

	Andrew


More information about the Gdb-patches mailing list