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 [infrun.c]: Add missing initialization for inferior_io_terminal


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);


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