X-Git-Url: http://drtracing.org/?a=blobdiff_plain;ds=sidebyside;f=sim%2Fcommon%2Fsim-engine.c;h=ac3d20e86b7e2c423556c4f55fba3f66f23f6ade;hb=596f88276cffbca82e3858da40db7e7cc7aa476e;hp=9415f637cc1150bec0d55e526dd9b2a97f5b5f45;hpb=dc9e099fc0eced486ae2b49455c9da113c11f4ff;p=deliverable%2Fbinutils-gdb.git diff --git a/sim/common/sim-engine.c b/sim/common/sim-engine.c index 9415f637cc..ac3d20e86b 100644 --- a/sim/common/sim-engine.c +++ b/sim/common/sim-engine.c @@ -1,22 +1,21 @@ /* Generic simulator halt/restart. - Copyright (C) 1997, 1998 Free Software Foundation, Inc. + Copyright (C) 1997-2015 Free Software Foundation, Inc. Contributed by Cygnus Support. This file is part of GDB, the GNU debugger. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by -the Free Software Foundation; either version 2, or (at your option) -any later version. +the Free Software Foundation; either version 3 of the License, or +(at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. -You should have received a copy of the GNU General Public License along -with this program; if not, write to the Free Software Foundation, Inc., -59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +You should have received a copy of the GNU General Public License +along with this program. If not, see . */ #include @@ -79,7 +78,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 +129,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 { @@ -145,7 +148,7 @@ sim_engine_abort (SIM_DESC sd, { va_list ap; ASSERT (sd == NULL || STATE_MAGIC (sd) == SIM_MAGIC_NUMBER); - va_start(ap, fmt); + va_start (ap, fmt); sim_engine_vabort (sd, cpu, cia, fmt, ap); va_end (ap); }