aboutsummaryrefslogtreecommitdiff
path: root/sim/ppc/misc.h
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2024-01-01 17:34:01 -0500
committerMike Frysinger <vapier@gentoo.org>2024-01-01 17:39:09 -0500
commit9ddac092a831d9eb4a53959764c2d13b12964a0c (patch)
treea9177cbf20722b0c81ee211beb50886309028322 /sim/ppc/misc.h
parentef993dfa05f6a79a76ede0d0be00f7ac93d7c75c (diff)
downloadgdb-9ddac092a831d9eb4a53959764c2d13b12964a0c.zip
gdb-9ddac092a831d9eb4a53959764c2d13b12964a0c.tar.gz
gdb-9ddac092a831d9eb4a53959764c2d13b12964a0c.tar.bz2
sim: ppc: rework igen error to match common
Switch to an ERROR macro and tweak the error signature to match the common igen version in preparation for merging the two implementations.
Diffstat (limited to 'sim/ppc/misc.h')
-rw-r--r--sim/ppc/misc.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/sim/ppc/misc.h b/sim/ppc/misc.h
index 0073467..243d5c9 100644
--- a/sim/ppc/misc.h
+++ b/sim/ppc/misc.h
@@ -28,8 +28,11 @@
#include "ansidecl.h"
#include "filter_host.h"
-extern void error (const char *msg, ...)
- ATTRIBUTE_NORETURN ATTRIBUTE_PRINTF (1, 2);
+extern void error (const void *line, const char *msg, ...)
+ ATTRIBUTE_NORETURN ATTRIBUTE_PRINTF (2, 3);
+
+#define ERROR(EXPRESSION, args...) \
+ error (NULL, EXPRESSION, ## args)
#define ASSERT(EXPRESSION) \
do { \