llvm-project/lldb/source
Alexander Shaposhnikov 64b4bcfa05 [lldb] Enable using out-of-tree dwps
Previously LLDB required the DWP file 
to be located next to the executable file.
This diff uses the helper function 
Symbols::LocateExecutableSymbolFile to search for 
DWP files in the standard locations for debug symbols.

Test plan:

Build a toy test example:
main.cpp
clang -gsplit-dwarf -g -O0 main.cpp -o main.exe
llvm-dwp -e main.exe -o main.exe.dwp
mkdir -p debug_symbols
mv main.exe.dwp debug_symbols/main.exe.dwp

Run lldb:
lldb
settings set target.debug-file-search-paths ./debug_symbols
file ./main.exe
br set --name f
run

Check that debugging works:
setting breakpoints, printing local variables.

Differential revision: https://reviews.llvm.org/D38568

llvm-svn: 315387
2017-10-10 23:28:34 +00:00
..
API Implement interactive command interruption 2017-10-05 23:41:28 +00:00
Breakpoint Wire up the breakpoint name help string. 2017-09-15 00:52:35 +00:00
Commands Support: Have directory_iterator::status() return FindFirstFileEx/FindNextFile results on Windows. 2017-10-10 22:19:46 +00:00
Core Implement interactive command interruption 2017-10-05 23:41:28 +00:00
DataFormatters Use exact equality for category language matching, for all languages, except those specifically mentioned. 2017-06-06 20:40:24 +00:00
Expression Add support for the DWP debug info format 2017-08-25 13:56:14 +00:00
Host [lldb] Enable using out-of-tree dwps 2017-10-10 23:28:34 +00:00
Initialization Move Timer and TraceOptions from Core to Utility 2017-06-29 14:32:17 +00:00
Interpreter Implement interactive command interruption 2017-10-05 23:41:28 +00:00
Plugins [lldb] Enable using out-of-tree dwps 2017-10-10 23:28:34 +00:00
Symbol Improve FreeBSD kernel debugging 2017-10-02 14:35:07 +00:00
Target Enable breakpoints and read/write GPRs for ppc64le 2017-10-05 19:44:05 +00:00
Utility Support: Have directory_iterator::status() return FindFirstFileEx/FindNextFile results on Windows. 2017-10-10 22:19:46 +00:00
CMakeLists.txt Remove Plugins/Process/POSIX from include_directories 2017-04-11 12:26:25 +00:00
lldb.cpp One more cleanup to lldb version printing 2016-11-14 22:43:08 +00:00