summaryrefslogtreecommitdiff
path: root/sim
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2000-05-23 11:34:27 +0000
committerAndrew Cagney <cagney@redhat.com>2000-05-23 11:34:27 +0000
commitf84d428279c1d2c9dcee1546b737fb19d5d12984 (patch)
tree538ef1a3cf813934fd77246582395850844c7205 /sim
parenta026fe9f8f2708a4cfb62395d01f6c835af07c82 (diff)
downloadgdb-f84d428279c1d2c9dcee1546b737fb19d5d12984.tar.gz
sigrc wasn't initialized before being passed to sim_resume().
Diffstat (limited to 'sim')
-rw-r--r--sim/common/ChangeLog4
-rw-r--r--sim/common/run.c2
2 files changed, 6 insertions, 0 deletions
diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog
index 43462140a08..815e5cf7f9a 100644
--- a/sim/common/ChangeLog
+++ b/sim/common/ChangeLog
@@ -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
diff --git a/sim/common/run.c b/sim/common/run.c
index d23b5a0152e..2c98df87caa 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);