aboutsummaryrefslogtreecommitdiff
path: root/sim/lm32
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2021-05-04 08:56:12 -0600
committerTom Tromey <tromey@adacore.com>2021-05-04 13:19:33 -0600
commitbe7547b07780effc5ad8a37f48ec4047053ef6ba (patch)
treef98749db322b849437806836cf6f57af83fa281f /sim/lm32
parenta0c4531a55c86a40b65cdc7af80473856d029a2e (diff)
downloadgdb-be7547b07780effc5ad8a37f48ec4047053ef6ba.zip
gdb-be7547b07780effc5ad8a37f48ec4047053ef6ba.tar.gz
gdb-be7547b07780effc5ad8a37f48ec4047053ef6ba.tar.bz2
Add missing stdlib.h includes to sim
This updates the various "mloop.in" files to emit an include of stdlib.h, to avoid warnings about 'abort' being undeclared. One such warning now remains, in mn10300.igen. I don't know offhand the best way to fix this one. 2021-05-04 Tom Tromey <tromey@adacore.com> * mloop.in: Include <stdlib.h>. sim/iq2000/ChangeLog 2021-05-04 Tom Tromey <tromey@adacore.com> * mloop.in: Include <stdlib.h>. sim/lm32/ChangeLog 2021-05-04 Tom Tromey <tromey@adacore.com> * mloop.in: Include <stdlib.h>. sim/m32r/ChangeLog 2021-05-04 Tom Tromey <tromey@adacore.com> * mloop.in: Include <stdlib.h>. sim/or1k/ChangeLog 2021-05-04 Tom Tromey <tromey@adacore.com> * mloop.in: Include <stdlib.h>.
Diffstat (limited to 'sim/lm32')
-rw-r--r--sim/lm32/ChangeLog4
-rw-r--r--sim/lm32/mloop.in1
2 files changed, 5 insertions, 0 deletions
diff --git a/sim/lm32/ChangeLog b/sim/lm32/ChangeLog
index eac37de..f169b1b 100644
--- a/sim/lm32/ChangeLog
+++ b/sim/lm32/ChangeLog
@@ -1,3 +1,7 @@
+2021-05-04 Tom Tromey <tromey@adacore.com>
+
+ * mloop.in: Include <stdlib.h>.
+
2021-05-04 Mike Frysinger <vapier@gentoo.org>
* configure: Regenerate.
diff --git a/sim/lm32/mloop.in b/sim/lm32/mloop.in
index a8db7f5..574f00a 100644
--- a/sim/lm32/mloop.in
+++ b/sim/lm32/mloop.in
@@ -32,6 +32,7 @@ case "x$1" in
xsupport)
cat <<EOF
+#include <stdlib.h>
static INLINE const IDESC *
extract (SIM_CPU *current_cpu, PCADDR pc, CGEN_INSN_INT insn,