[llvm-bugs] [Bug 45729] New: Use symbol table if debug data doesn't contain address

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Apr 29 03:04:21 PDT 2020


https://bugs.llvm.org/show_bug.cgi?id=45729

            Bug ID: 45729
           Summary: Use symbol table if debug data doesn't contain address
           Product: tools
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: llvm-symbolizer
          Assignee: unassignedbugs at nondot.org
          Reporter: jh7370.2008 at my.bristol.ac.uk
                CC: llvm-bugs at lists.llvm.org

Currently, llvm-symbolizer tries to look up input addresses using the object's
debug data only. If it fails to find the address using the information (most
likely because there is no data), it prints the not found pattern.

GNU's addr2line still prints a symbol name, if --functions is enabled:
C:\Work> addr2line --functions 0x1f5 -e test.elf
a_symbol
??:0

Whilst I haven't looked at how it does this, it seems reasonable to assume that
it is looking up the information from the symbol table. I don't see any reason
why we can't look that information up either.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200429/66178782/attachment-0001.html>


More information about the llvm-bugs mailing list