aboutsummaryrefslogtreecommitdiff
path: root/sim/common
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2021-06-06 18:13:41 -0400
committerMike Frysinger <vapier@gentoo.org>2021-06-09 19:07:09 -0400
commit943f9baa37aa2704820439d4f72a7624c7eb4968 (patch)
tree6524433ccdab90d3755b1283fddc0292aa36c2bb /sim/common
parentdc3de083d522ef0fb465adaacd065a61481d4007 (diff)
downloadgdb-943f9baa37aa2704820439d4f72a7624c7eb4968.zip
gdb-943f9baa37aa2704820439d4f72a7624c7eb4968.tar.gz
gdb-943f9baa37aa2704820439d4f72a7624c7eb4968.tar.bz2
sim: cleanup obsolete NULL fallback
We require C11 which defines NULL, so drop the inconsistent set of fallback defines in the codebase.
Diffstat (limited to 'sim/common')
-rw-r--r--sim/common/ChangeLog4
-rw-r--r--sim/common/sim-basics.h5
2 files changed, 4 insertions, 5 deletions
diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog
index b5b6db2..2cc89c8 100644
--- a/sim/common/ChangeLog
+++ b/sim/common/ChangeLog
@@ -1,5 +1,9 @@
2021-06-09 Mike Frysinger <vapier@gentoo.org>
+ * sim-basics.h (NULL): Delete.
+
+2021-06-09 Mike Frysinger <vapier@gentoo.org>
+
* nrun.c (main): Set default_callback.target_endian to
current_target_byte_order when it's BFD_ENDIAN_UNKNOWN.
diff --git a/sim/common/sim-basics.h b/sim/common/sim-basics.h
index 25c1193..ac63aef 100644
--- a/sim/common/sim-basics.h
+++ b/sim/common/sim-basics.h
@@ -36,11 +36,6 @@
#include <setjmp.h>
-#ifndef NULL
-#define NULL 0
-#endif
-
-
#ifndef min
#define min(a, b) ((a) < (b) ? (a) : (b))
#endif