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: Andrew Cagney <ac131313 at cygnus dot com>
- Subject: Re: RFA/RFC: Patch: make `inferior_args' visible to gdbtk (2nd try)
- From: Fernando Nasser <fnasser at cygnus dot com>
- Date: Thu, 14 Dec 2000 08:21:36 -0500
- CC: gdb-patches at sources dot redhat dot com
- Organization: Red Hat , Inc. - Toronto
- References: <3A314114.2CB2DC0A@cygnus.com> <3A383AF4.ADAAD2AC@cygnus.com>
Andrew Cagney wrote:
>
> 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() :-)
>
Yes.
I am assuming you mean that it can go in after that change, right?
--
Fernando Nasser
Red Hat - Toronto E-Mail: fnasser@redhat.com
2323 Yonge Street, Suite #300
Toronto, Ontario M4P 2C9