hanchenye-llvm-project/lldb
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
..
cmake Check availability of accept4 in C++ instad of C code. 2017-09-16 02:58:49 +00:00
docs Adding Support for Error Strings in Remote Packets 2017-07-12 11:15:34 +00:00
examples Work around a bug in the C++ expression parser. 2017-10-05 01:00:29 +00:00
include/lldb Implement interactive command interruption 2017-10-05 23:41:28 +00:00
lit Resubmit "[lit] Force site configs to run before source-tree configs" 2017-09-15 22:10:46 +00:00
lldb.xcodeproj Remove the input file specification from the 2017-10-07 00:13:10 +00:00
lldb.xcworkspace
packages/Python/lldbsuite Implement interactive command interruption 2017-10-05 23:41:28 +00:00
resources
scripts Implement interactive command interruption 2017-10-05 23:41:28 +00:00
source [lldb] Enable using out-of-tree dwps 2017-10-10 23:28:34 +00:00
test cmake build needs to run tests AND collect results 2017-07-18 23:45:06 +00:00
third_party/Python/module *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
tools [lldb-mi] Fix a thinko in my previous commit. 2017-09-30 21:52:31 +00:00
unittests cmake + xcode: prevent gtests from using includes from project root 2017-10-03 21:20:18 +00:00
utils *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
www Mention breakpoint names in the tutorial. 2017-09-14 22:20:31 +00:00
.arcconfig
.clang-format Updated .clang-format rules so bring LLDB in line with LLVM standards. 2016-09-06 17:19:00 +00:00
.gitignore test infra: clear file-charged issues on rerun of file 2016-10-01 00:17:08 +00:00
CMakeLists.txt [CMake] Add LLDB_INCLUDE_TESTS variable 2017-10-06 22:21:36 +00:00
CODE_OWNERS.txt Greg Clayton is no longer working at Apple, he will continue to 2017-03-01 00:00:45 +00:00
INSTALL.txt Changed builld-llvm.py to use .json files 2017-02-23 02:21:34 +00:00
LICENSE.TXT
use_lldb_suite_root.py *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00