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)


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

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