Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: simon.marchi@polymtl.ca
To: gdb-patches@sourceware.org
Cc: Simon Marchi <simon.marchi@efficios.com>
Subject: [pushed] gdb: make SEARCH_VFT a constexpr variable
Date: Fri, 13 Nov 2026 09:42:02 -0500	[thread overview]
Message-ID: <20261113144203.3256728-1-simon.marchi@polymtl.ca> (raw)

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


                 reply	other threads:[~2026-11-13 14:44 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261113144203.3256728-1-simon.marchi@polymtl.ca \
    --to=simon.marchi@polymtl.ca \
    --cc=gdb-patches@sourceware.org \
    --cc=simon.marchi@efficios.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox