RFA [infrun.c]: Add missing initialization for inferior_io_terminal
Andrew Cagney
ac131313@cygnus.com
Fri Apr 6 09:14:00 GMT 2001
Fernando Nasser wrote:
>
> inferior_io_terminal is never initialized.
Shouldn't it be zero anyway?
Andrew
> ------------------------------------------------------------------------
> Index: infcmd.c
> ===================================================================
> RCS file: /cvs/src/src/gdb/infcmd.c,v
> retrieving revision 1.26
> diff -c -p -r1.26 infcmd.c
> *** infcmd.c 2001/03/27 20:36:23 1.26
> --- infcmd.c 2001/04/06 13:27:18
> *************** Register name as argument means describe
> *** 1966,1971 ****
> --- 1966,1972 ----
> add_info ("float", float_info,
> "Print the status of the floating point unit\n");
>
> + inferior_io_terminal = NULL; /* No inferior terminal specified (yet) */
> set_inferior_args (xstrdup ("")); /* Initially no args */
> inferior_environ = make_environ ();
> init_environ (inferior_environ);
More information about the Gdb-patches
mailing list