llvm-project/lldb/source
Greg Clayton 9cc222c80d Fix a bug in "target.source-map" where we would resolve unmapped paths incorrectly
When using:

(lldb) settings set target.source-map ./ /path/to/source
LLDB would fail to set a source file and line breakpoint with:

(lldb) breakpoint set --file /path/to/source/main.c --line 2
Because code in the target was undoing the remapping of "/path/to/source/main.c" to "./main.c" and then it would resolve this path, which would append the current working directory to the path. We don't want to resolve paths that we unmap.

Test case added.

Differential Revision: https://reviews.llvm.org/D44502

llvm-svn: 327600
2018-03-15 05:13:15 +00:00
..
API Add a missing return in SBPlatform::IsConnected and test 2018-03-13 21:06:05 +00:00
Breakpoint Re-add change for https://reviews.llvm.org/D42582 with added directories. 2018-03-12 21:17:04 +00:00
Commands Move option parsing out of the Args class 2018-03-09 10:39:40 +00:00
Core include locale.h in IOHandler.cpp 2018-03-13 15:55:00 +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 [IRExecutionUnit] Remove broken/dead code. 2018-01-04 23:37:18 +00:00
Host Introduce a setting to disable Spotlight while running the test suite 2018-03-12 20:52:36 +00:00
Initialization Don't use llvm::EnablePrettyStackTrace on macOS. 2017-12-02 00:11:18 +00:00
Interpreter Move option parsing out of the Args class 2018-03-09 10:39:40 +00:00
Plugins [DataFormatters] Implement summary for __NSDictionary0. 2018-03-14 23:09:36 +00:00
Symbol Revert "[lldb] Use vFlash commands when writing to target's flash memory regions" 2018-02-28 20:42:29 +00:00
Target Fix a bug in "target.source-map" where we would resolve unmapped paths incorrectly 2018-03-15 05:13:15 +00:00
Utility Re-land: "[Support] Replace HashString with djbHash." 2018-02-26 15:16:42 +00:00
CMakeLists.txt Remove Plugins/Process/POSIX from include_directories 2017-04-11 12:26:25 +00:00
lldb.cpp Run clang-format on lldb.cpp 2017-11-02 16:56:52 +00:00