[Lldb-commits] [PATCH] D44502: Fix a bug in "target.source-map" where we would resolve unmapped paths incorrectly

Greg Clayton via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Wed Mar 14 16:22:01 PDT 2018


clayborg created this revision.
clayborg added reviewers: jingham, labath, lldb-commits.

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.


https://reviews.llvm.org/D44502

Files:
  packages/Python/lldbsuite/test/functionalities/source-map/TestTargetSourceMap.py
  packages/Python/lldbsuite/test/functionalities/source-map/a.yaml
  source/Target/Target.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D44502.138472.patch
Type: text/x-patch
Size: 15779 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20180314/6158476e/attachment-0001.bin>


More information about the lldb-commits mailing list