diff options
author | Andrew Cagney <cagney@redhat.com> | 2000-05-23 11:34:27 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2000-05-23 11:34:27 +0000 |
commit | 781c552e2dc80dc5f785e107ca0cb656bc66a2a0 (patch) | |
tree | a2edf6360f0fcde4f48d446432bba1b20845f150 /sim/common/run.c | |
parent | 16cadf399acef54f873030ccd31a964a2150e963 (diff) | |
download | gdb-781c552e2dc80dc5f785e107ca0cb656bc66a2a0.zip gdb-781c552e2dc80dc5f785e107ca0cb656bc66a2a0.tar.gz gdb-781c552e2dc80dc5f785e107ca0cb656bc66a2a0.tar.bz2 |
sigrc wasn't initialized before being passed to sim_resume().
Diffstat (limited to 'sim/common/run.c')
-rw-r--r-- | sim/common/run.c | 2 |
1 files changed, 2 insertions, 0 deletions
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); |