]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdb: Use SYM_DOMAIN instead of DOMAIN when calling sym-domains.def
authorLancelot SIX <lancelot.six@amd.com>
Mon, 29 Jan 2024 18:28:52 +0000 (18:28 +0000)
committerLancelot SIX <lancelot.six@amd.com>
Mon, 29 Jan 2024 20:20:30 +0000 (20:20 +0000)
commit878e894801169461adc00129ad33947ad541420d
treecff4e307be0aa3d24a60863322a314ad82ccac98
parent34e222d3c20f33adae7d0841bc37dc9ac61fb1cd
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>
gdb/guile/scm-symbol.c
gdb/python/py-symbol.c
gdb/sym-domains.def
gdb/symtab.c
gdb/symtab.h