sigrc wasn't initialized before being passed to sim_resume().
authorAndrew Cagney <cagney@redhat.com>
Tue, 23 May 2000 11:34:27 +0000 (11:34 +0000)
committerAndrew Cagney <cagney@redhat.com>
Tue, 23 May 2000 11:34:27 +0000 (11:34 +0000)
sim/common/ChangeLog
sim/common/run.c

index 43462140a082030ef3e0b919c668a23b3a4bb1f9..815e5cf7f9aba4c140a9de561462b22246e3ccf4 100644 (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
index d23b5a0152e4d1f621be7d44a21ecb4655012605..2c98df87caae4264dbf0ab3c20833ba2a591e636 100644 (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);
This page took 0.029091 seconds and 4 git commands to generate.