sigrc wasn't initialized before being passed to sim_resume().

This commit is contained in:
Andrew Cagney 2000-05-23 11:34:27 +00:00
parent 16cadf399a
commit 781c552e2d
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,7 @@
Tue May 23 20:30:12 2000 Andrew Cagney <cagney@amy.cygnus.com>
* run.c (main): Initialize sigrc.
Wed Apr 26 16:18:44 2000 Andrew Cagney <cagney@b1.cygnus.com>
* sim-events.c (update_time_from_event): Add more detailed event

View File

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