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

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@lists.llvm.org
Reporter tberghammer@google.com
CC llvm-bugs@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