This is the mail archive of the gdb-patches@sources.redhat.com 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]

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


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

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