This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: RFA/RFC: Patch: make `inferior_args' visible to gdbtk (2nd try)
- To: Fernando Nasser <fnasser at cygnus dot com>
- Subject: Re: RFA/RFC: Patch: make `inferior_args' visible to gdbtk (2nd try)
- From: Andrew Cagney <ac131313 at cygnus dot com>
- Date: Thu, 14 Dec 2000 14:13:56 +1100
- Cc: gdb-patches at sources dot redhat dot com
- References: <3A314114.2CB2DC0A@cygnus.com>
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