[llvm-bugs] [Bug 25087] New: Stripped symbol handling when using dwo sdebug info

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Oct 7 03:00:06 PDT 2015


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

            Bug ID: 25087
           Summary: Stripped symbol handling when using dwo sdebug info
           Product: lldb
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
          Assignee: lldb-dev at lists.llvm.org
          Reporter: tberghammer at google.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

If we use dsym/dwarf as a debug info and a symbol is removed from the object
file during linking (because it is unused) then LLDB correctly reports an error
when the user want to set a breakpoint on it.

In case of dwo debug info the symbol will be still available in the *.dwo file
as it isn't modified by the linker when it removed the unused function. Because
of it LLDB will set a breakpoint at address 0x0 (the address stored at the
location where the symbol address should be stored in the executable) instead
of reporting an error.

For a test case see: DeadStripTestCase.test

-- 
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/20151007/02c2b3a6/attachment.html>


More information about the llvm-bugs mailing list