aboutsummaryrefslogtreecommitdiff
path: root/gdb/symtab.h
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2024-01-29 09:45:35 -0700
committerTom Tromey <tromey@adacore.com>2024-02-01 07:10:57 -0700
commitf214edceb8cd97058c2682efb7b321d923e4ff02 (patch)
tree82153bda9ff220aca93ee11b623fa6868c7326ab /gdb/symtab.h
parent05d1b4b4ad7d74a64cc71c53d621241fc393fcb6 (diff)
downloadgdb-f214edceb8cd97058c2682efb7b321d923e4ff02.zip
gdb-f214edceb8cd97058c2682efb7b321d923e4ff02.tar.gz
gdb-f214edceb8cd97058c2682efb7b321d923e4ff02.tar.bz2
Rename SEARCH_ALL
The constant SEARCH_ALL conflicts with a define in a Windows header. This patch renames the constant to SEARCH_ALL_DOMAINS to avoid the conflict. Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=31307
Diffstat (limited to 'gdb/symtab.h')
-rw-r--r--gdb/symtab.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/symtab.h b/gdb/symtab.h
index d43207ed..3b067a7 100644
--- a/gdb/symtab.h
+++ b/gdb/symtab.h
@@ -917,7 +917,7 @@ enum domain_search_flag
DEF_ENUM_FLAGS_TYPE (enum domain_search_flag, domain_search_flags);
/* A convenience constant to search for any symbol. */
-constexpr domain_search_flags SEARCH_ALL
+constexpr domain_search_flags SEARCH_ALL_DOMAINS
= ((domain_search_flags) 0
#define SYM_DOMAIN(X) | SEARCH_ ## X ## _DOMAIN
#include "sym-domains.def"
@@ -958,7 +958,7 @@ search_flags_matches (domain_search_flags flags, domain_enum domain)
/* The flag bit. */
constexpr int SCRIPTING_SEARCH_FLAG = 0x8000;
-static_assert (SCRIPTING_SEARCH_FLAG > SEARCH_ALL);
+static_assert (SCRIPTING_SEARCH_FLAG > SEARCH_ALL_DOMAINS);
/* Convert a domain constant to a "scripting domain". */
static constexpr inline int