This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
RFA [infrun.c]: Add missing initialization for inferior_io_terminal
- To: gdb-patches at sources dot redhat dot com
- Subject: RFA [infrun.c]: Add missing initialization for inferior_io_terminal
- From: Fernando Nasser <fnasser at redhat dot com>
- Date: Fri, 06 Apr 2001 09:26:44 -0400
- Organization: Red Hat Canada
inferior_io_terminal is never initialized.
Here is the patch.
--
Fernando Nasser
Red Hat Canada Ltd. E-Mail: fnasser@redhat.com
2323 Yonge Street, Suite #300
Toronto, Ontario M4P 2C9
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);