This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug symtab/17564] New: lookup of static symbols should properly search each objfile in order


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

            Bug ID: 17564
           Summary: lookup of static symbols should properly search each
                    objfile in order
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: symtab
          Assignee: unassigned at sourceware dot org
          Reporter: xdje42 at gmail dot com

When deciding it needs to search all objfiles to look up a symbol in
STATIC_BLOCK, gdb will first search all expanded symbol tables of all objfiles
and *then* search all partial(/gdb_index) symbol tables of all objfiles.
This leads to different answers depending on the what the user does in the
debug session.

What gdb should do is perform a full lookup (expanded+partial) in each objfile
in turn.

Patch and testcase to follow.

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]