From: Andrew Cagney Date: Wed, 26 Feb 2003 23:27:09 +0000 (+0000) Subject: Index: common/ChangeLog X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=dbd7cd63b99874422f5e1a151e9d7119c3a3dd61;p=binutils-gdb.git Index: common/ChangeLog 2003-02-26 Andrew Cagney * sim-engine.h (sim_engine_abort): Add noreturn attribute. (sim_engine_vabort): Ditto. (sim_engine_halt, sim_engine_restart): Ditto. Index: mn10300/ChangeLog 2003-02-26 Andrew Cagney * am33.igen: Call sim_engine_abort instead of abort. --- diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog index 2d5f7b8028b..bd1b29b483a 100644 --- a/sim/common/ChangeLog +++ b/sim/common/ChangeLog @@ -1,3 +1,9 @@ +2003-02-26 Andrew Cagney + + * sim-engine.h (sim_engine_abort): Add noreturn attribute. + (sim_engine_vabort): Ditto. + (sim_engine_halt, sim_engine_restart): Ditto. + 2003-02-20 Andrew Cagney * Make-common.in (SIM_NEW_COMMON_OBJS): Remove sim-break.o diff --git a/sim/common/sim-engine.h b/sim/common/sim-engine.h index 41aa51f9ed0..18513a64c79 100644 --- a/sim/common/sim-engine.h +++ b/sim/common/sim-engine.h @@ -63,7 +63,7 @@ extern void sim_engine_halt sim_cpu *next_cpu, /* NULL -> succ (last_cpu) or event-mgr */ sim_cia cia, enum sim_stop reason, - int sigrc); + int sigrc) __attribute__ ((noreturn)); /* Halt hook - allow target specific operation when halting a simulator */ @@ -116,14 +116,14 @@ extern void sim_engine_abort sim_cpu *cpu, sim_cia cia, const char *fmt, - ...) __attribute__ ((format (printf, 4, 5))); + ...) __attribute__ ((format (printf, 4, 5))) __attribute__ ((noreturn)); extern void sim_engine_vabort (SIM_DESC sd, sim_cpu *cpu, sim_cia cia, const char *fmt, - va_list ap); + va_list ap) __attribute__ ((noreturn)); /* No abort hook - when possible this function exits using the engine_halt function (and SIM_ENGINE_HALT_HOOK). */ diff --git a/sim/mn10300/ChangeLog b/sim/mn10300/ChangeLog index b7ea00d272b..ce01a53d931 100644 --- a/sim/mn10300/ChangeLog +++ b/sim/mn10300/ChangeLog @@ -1,3 +1,7 @@ +2003-02-26 Andrew Cagney + + * am33.igen: Call sim_engine_abort instead of abort. + 2003-02-26 David Carlton * dv-mn103tim.c (read_special_timer6_reg): Add break after diff --git a/sim/mn10300/am33.igen b/sim/mn10300/am33.igen index a5745e2f9ca..db41889e747 100644 --- a/sim/mn10300/am33.igen +++ b/sim/mn10300/am33.igen @@ -34,7 +34,7 @@ case 4: return REG_MCVF; default: - abort (); + sim_engine_abort (SD, CPU, cia, "%s:%d: bad switch\n", __FILE__, __LINE__); } }