[Bug 28293] New: LLDB can't find split debug info if the debuggee has been moved form build directory

Bug ID 28293
Summary LLDB can’t find split debug info if the debuggee has been moved form build directory
Product lldb
Version unspecified
Hardware PC
OS Linux
Status NEW
Severity normal
Priority P
Component All Bugs
Assignee lldb-dev@lists.llvm.org
Reporter vadimcn@gmail.com
CC llvm-bugs@lists.llvm.org
Classification Unclassified

(This situation often arises when build servers are employed)

I think this happens because LLDB simply takes DW_AT_comp_dir at the face value
here:
[https://github.com/llvm-mirror/lldb/blob/876d71dc6c37f23c8ae9d219705d06c6def3f354/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp#L1778-1794](https://github.com/llvm-mirror/lldb/blob/876d71dc6c37f23c8ae9d219705d06c6def3f354/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp#L1778-1794)

There should be a way to remap debug info paths similarly to what is done for
source with 'target.source-map'.  I would even argue that it should be the same
setting for both.

Another good candidate seems to be the 'target.debug-file-search-paths'
setting.  LLDB could probe each of these directories (also probably the
directory where the debuggee is located) combined with the value of
DW_AT_GNU_dwo_name.