From: Andrew Cagney Date: Tue, 23 May 2000 11:34:27 +0000 (+0000) Subject: sigrc wasn't initialized before being passed to sim_resume(). X-Git-Tag: readline-pre-41-import~408 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=781c552e2dc80dc5f785e107ca0cb656bc66a2a0;p=external%2Fbinutils.git sigrc wasn't initialized before being passed to sim_resume(). --- diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog index 4346214..815e5cf 100644 --- a/sim/common/ChangeLog +++ b/sim/common/ChangeLog @@ -1,3 +1,7 @@ +Tue May 23 20:30:12 2000 Andrew Cagney + + * run.c (main): Initialize sigrc. + Wed Apr 26 16:18:44 2000 Andrew Cagney * sim-events.c (update_time_from_event): Add more detailed event diff --git a/sim/common/run.c b/sim/common/run.c index d23b5a0..2c98df8 100644 --- a/sim/common/run.c +++ b/sim/common/run.c @@ -242,6 +242,7 @@ main (ac, av) 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); @@ -265,6 +266,7 @@ main (ac, av) else { prev_sigint = signal (SIGINT, cntrl_c); + sigrc = 0; sim_resume (sd, 0, sigrc); signal (SIGINT, prev_sigint); sim_stop_reason (sd, &reason, &sigrc);