public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] Remove a check of VAR_DOMAIN
@ 2024-01-28 23:44 Tom Tromey
  0 siblings, 0 replies; only message in thread
From: Tom Tromey @ 2024-01-28 23:44 UTC (permalink / raw)
  To: gdb-cvs

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=8370bcc7b7b966ea86a7c87ba1549e607da7ac25

commit 8370bcc7b7b966ea86a7c87ba1549e607da7ac25
Author: Tom Tromey <tom@tromey.com>
Date:   Fri Mar 10 22:16:51 2023 -0700

    Remove a check of VAR_DOMAIN
    
    completion_list_add_symbol checks that the returned symbol has
    VAR_DOMAIN, but also checks that its address class is LOC_BLOCK.  The
    domain check is redundant -- only functions can possibly be LOC_BLOCK
    -- and leaving this in place will cause a regression when combined
    with a later patch in this series.  This patch preemptively removes
    the redundant check.

Diff:
---
 gdb/symtab.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/gdb/symtab.c b/gdb/symtab.c
index 7c56dbadf8c..76a771b1166 100644
--- a/gdb/symtab.c
+++ b/gdb/symtab.c
@@ -5631,7 +5631,6 @@ completion_list_add_symbol (completion_tracker &tracker,
      the msymbol name and removes the msymbol name from the completion
      tracker.  */
   if (sym->language () == language_cplus
-      && sym->domain () == VAR_DOMAIN
       && sym->aclass () == LOC_BLOCK)
     {
       /* The call to canonicalize returns the empty string if the input

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

only message in thread, other threads:[~2024-01-28 23:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-28 23:44 [binutils-gdb] Remove a check of VAR_DOMAIN Tom Tromey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).