[Bug symtab/33496] New: [gdb/symtab] Remove readnow

vries at gcc dot gnu.org sourceware-bugzilla@sourceware.org
Sat Sep 27 15:40:47 GMT 2025


https://sourceware.org/bugzilla/show_bug.cgi?id=33496

            Bug ID: 33496
           Summary: [gdb/symtab] Remove readnow
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: symtab
          Assignee: unassigned at sourceware dot org
          Reporter: vries at gcc dot gnu.org
  Target Milestone: ---

AFAIU there are currently two types of symbol lookup.

1. We look up a symbol in the index (cooked index, .gdb_index, .debug_names),
which selects one or a set of CUs, then expand the CUs not yet expanded, and
find the symbol(s) in the selected set of expanded CUs.

2. [readnow] We expand all CUs, and look in all expanded CUs for the symbol.

I was in favor of using readnow in the past because of the ability to find
problems in using the indexes, but I'm not sure that that's still worthwhile
because recent changes have resulted in a greater disconnect between readnow
and the other modes.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Gdb-prs mailing list