This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: RFA [infrun.c]: Add missing initialization for inferior_io_terminal
- To: Fernando Nasser <fnasser at redhat dot com>
- Subject: Re: RFA [infrun.c]: Add missing initialization for inferior_io_terminal
- From: Andrew Cagney <ac131313 at cygnus dot com>
- Date: Fri, 06 Apr 2001 12:14:20 -0400
- Cc: gdb-patches at sources dot redhat dot com
- References: <3ACDC414.C0C677B2@redhat.com>
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);