aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2003-03-01 20:54:22 +0000
committerAndrew Cagney <cagney@redhat.com>2003-03-01 20:54:22 +0000
commit876fec0252664abb876fd5167976eaa6c53e1a19 (patch)
tree419859874cf57c13147590077b5be508d8c4727c
parent35cac7cfea5ce05bfb0516b9ca11e3cf6561c1d4 (diff)
downloadgdb-876fec0252664abb876fd5167976eaa6c53e1a19.zip
gdb-876fec0252664abb876fd5167976eaa6c53e1a19.tar.gz
gdb-876fec0252664abb876fd5167976eaa6c53e1a19.tar.bz2
2003-03-01 Andrew Cagney <cagney@redhat.com>
* sim-engine.c (sim_engine_halt): If jmpbuf is invalid, abort. (sim_engine_vabort): Ditto.
-rw-r--r--sim/common/ChangeLog5
-rw-r--r--sim/common/sim-engine.c6
2 files changed, 10 insertions, 1 deletions
diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog
index daadcf6..a7c8f4f 100644
--- a/sim/common/ChangeLog
+++ b/sim/common/ChangeLog
@@ -1,3 +1,8 @@
+2003-03-01 Andrew Cagney <cagney@redhat.com>
+
+ * sim-engine.c (sim_engine_halt): If jmpbuf is invalid, abort.
+ (sim_engine_vabort): Ditto.
+
2003-02-27 Andrew Cagney <cagney@redhat.com>
* sim-utils.h (sim_analyze_program, sim_load_file): Rename _bfd to bfd.
diff --git a/sim/common/sim-engine.c b/sim/common/sim-engine.c
index 9415f63..192b9ac 100644
--- a/sim/common/sim-engine.c
+++ b/sim/common/sim-engine.c
@@ -79,7 +79,10 @@ sim_engine_halt (SIM_DESC sd,
longjmp (*halt_buf, sim_engine_halt_jmpval);
}
else
- sim_io_error (sd, "sim_halt - bad long jump");
+ {
+ sim_io_error (sd, "sim_halt - bad long jump");
+ abort ();
+ }
}
@@ -127,6 +130,7 @@ sim_engine_vabort (SIM_DESC sd,
sim_io_evprintf (sd, fmt, ap);
sim_io_eprintf (sd, "\n");
sim_io_error (sd, "Quit Simulator");
+ abort ();
}
else
{