Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [pushed] gdb: make SEARCH_VFT a constexpr variable
@ 2026-11-13 14:42 simon.marchi
  0 siblings, 0 replies; only message in thread
From: simon.marchi @ 2026-11-13 14:42 UTC (permalink / raw)
  To: gdb-patches; +Cc: Simon Marchi

From: Simon Marchi <simon.marchi@efficios.com>

Turn SEARCH_VFT from a macro to a constexpr variable, like
SEARCH_ALL_DOMAINS is.

Change-Id: I330b09ddcf272f7d81d5468f11d60393fdf6ce75
---
 gdb/symtab.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/gdb/symtab.h b/gdb/symtab.h
index bd719af66697..0e823d034877 100644
--- a/gdb/symtab.h
+++ b/gdb/symtab.h
@@ -907,10 +907,10 @@ constexpr domain_search_flags SEARCH_ALL_DOMAINS
 #undef SYM_DOMAIN
        );
 
-/* A convenience define for "C-like" name lookups, matching variables,
+/* A convenience value for "C-like" name lookups, matching variables,
    types, and functions.  */
-#define SEARCH_VFT \
-  (SEARCH_VAR_DOMAIN | SEARCH_FUNCTION_DOMAIN | SEARCH_TYPE_DOMAIN)
+constexpr domain_search_flags SEARCH_VFT
+    = (SEARCH_VAR_DOMAIN | SEARCH_FUNCTION_DOMAIN | SEARCH_TYPE_DOMAIN);
 
 /* Return a string representing the given flags.  */
 extern std::string domain_name (domain_search_flags);

base-commit: aaf62c2437f48ff65e4585d4b65859f8b8a8c49e
-- 
2.56.0


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-13 14:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-13 14:42 [pushed] gdb: make SEARCH_VFT a constexpr variable simon.marchi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox