From 876fec0252664abb876fd5167976eaa6c53e1a19 Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Sat, 1 Mar 2003 20:54:22 +0000 Subject: [PATCH] 2003-03-01 Andrew Cagney * sim-engine.c (sim_engine_halt): If jmpbuf is invalid, abort. (sim_engine_vabort): Ditto. --- sim/common/ChangeLog | 5 +++++ sim/common/sim-engine.c | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog index daadcf6794e..a7c8f4f8bd6 100644 --- a/sim/common/ChangeLog +++ b/sim/common/ChangeLog @@ -1,3 +1,8 @@ +2003-03-01 Andrew Cagney + + * sim-engine.c (sim_engine_halt): If jmpbuf is invalid, abort. + (sim_engine_vabort): Ditto. + 2003-02-27 Andrew Cagney * 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 9415f637cc1..192b9ac8ea9 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 { -- 2.30.2