[patch/sim/common] Fix uninitialized sigrc variable
Andrew Cagney
ac131313@cygnus.com
Tue May 23 04:33:00 GMT 2000
Just FYI,
Andrew
Tue May 23 20:30:12 2000 Andrew Cagney <cagney@amy.cygnus.com>
* run.c (main): Initialize sigrc.
Index: run.c
===================================================================
RCS file: /cvs/src/src/sim/common/run.c,v
retrieving revision 1.4
diff -p -r1.4 run.c
*** run.c 2000/02/22 08:52:20 1.4
--- run.c 2000/05/23 11:31:53
*************** main (ac, av)
*** 242,247 ****
--- 242,248 ----
sim_stop_reason() can be used to determine any stop reason. */
if (trace)
sim_set_trace ();
+ sigrc = 0;
do
{
prev_sigint = signal (SIGINT, cntrl_c);
*************** main (ac, av)
*** 265,270 ****
--- 266,272 ----
else
{
prev_sigint = signal (SIGINT, cntrl_c);
+ sigrc = 0;
sim_resume (sd, 0, sigrc);
signal (SIGINT, prev_sigint);
sim_stop_reason (sd, &reason, &sigrc);
More information about the Gdb-patches
mailing list