aboutsummaryrefslogtreecommitdiff
path: root/gdb/guile/scm-symbol.c
diff options
context:
space:
mode:
authorLancelot SIX <lancelot.six@amd.com>2024-01-29 18:28:52 +0000
committerLancelot SIX <lancelot.six@amd.com>2024-01-29 20:20:30 +0000
commit878e894801169461adc00129ad33947ad541420d (patch)
treecff4e307be0aa3d24a60863322a314ad82ccac98 /gdb/guile/scm-symbol.c
parent34e222d3c20f33adae7d0841bc37dc9ac61fb1cd (diff)
downloadgdb-878e894801169461adc00129ad33947ad541420d.zip
gdb-878e894801169461adc00129ad33947ad541420d.tar.gz
gdb-878e894801169461adc00129ad33947ad541420d.tar.bz2
gdb: Use SYM_DOMAIN instead of DOMAIN when calling sym-domains.def
Since commit 6771fc6f1d9 "Use a .def file for domain_enum", the sym-domains.def file has been introduced, and requires the user to define the DOMAIN(x) macro. On older systems (centos-7 with glibc-2.17 for example), this DOMAIN macro conflicts with another macro defined in /usr/include/math.h. Fix this conflict by changing sym-domains.def to use a macro named SYM_DOMAIN instead of DOMAIN. Change-Id: I679df30e2bd2f4333343f16bbd2a3511a37550a3 Approved-By: Tom Tromey <tom@tromey.com>
Diffstat (limited to 'gdb/guile/scm-symbol.c')
-rw-r--r--gdb/guile/scm-symbol.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/guile/scm-symbol.c b/gdb/guile/scm-symbol.c
index 7061ff5..860ed52 100644
--- a/gdb/guile/scm-symbol.c
+++ b/gdb/guile/scm-symbol.c
@@ -697,11 +697,11 @@ static const scheme_integer_constant symbol_integer_constants[] =
X (LOC_REGPARM_ADDR),
#undef X
-#define DOMAIN(X) \
+#define SYM_DOMAIN(X) \
{ "SYMBOL_" #X "_DOMAIN", to_scripting_domain (X ## _DOMAIN) }, \
{ "SEARCH_" #X "_DOMAIN", to_scripting_domain (SEARCH_ ## X ## _DOMAIN) },
#include "sym-domains.def"
-#undef DOMAIN
+#undef SYM_DOMAIN
/* Historical. */
{ "SYMBOL_VARIABLES_DOMAIN", to_scripting_domain (SEARCH_VAR_DOMAIN) },