aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2024-01-01 17:28:51 -0500
committerMike Frysinger <vapier@gentoo.org>2024-01-01 17:31:12 -0500
commitef993dfa05f6a79a76ede0d0be00f7ac93d7c75c (patch)
treefcef5626f8db0d18b654e59480d2d060c43f51de
parent9b6e0cb3bac0852ccc61a50cb189c5187956e76b (diff)
downloadgdb-ef993dfa05f6a79a76ede0d0be00f7ac93d7c75c.zip
gdb-ef993dfa05f6a79a76ede0d0be00f7ac93d7c75c.tar.gz
gdb-ef993dfa05f6a79a76ede0d0be00f7ac93d7c75c.tar.bz2
sim: igen: extend error to take arguments
The ppc igen error helper allows arbitrary printf calls, so extend the common one to do the same.
-rw-r--r--sim/igen/misc.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sim/igen/misc.h b/sim/igen/misc.h
index eff8a20..4561055 100644
--- a/sim/igen/misc.h
+++ b/sim/igen/misc.h
@@ -56,12 +56,12 @@ extern error_func warning;
extern error_func notify;
-#define ERROR(EXPRESSION) \
+#define ERROR(EXPRESSION, args...) \
do { \
line_ref line; \
line.file_name = filter_filename (__FILE__); \
line.line_nr = __LINE__; \
- error (&line, EXPRESSION "\n"); \
+ error (&line, EXPRESSION "\n", ## args); \
} while (0)
#define ASSERT(EXPRESSION) \