[Lldb-commits] [PATCH] D70037: Fix a regression in macOS-style path remapping.
Adrian Prantl via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Fri Nov 8 17:45:01 PST 2019
aprantl created this revision.
aprantl added reviewers: JDevlieghere, labath, jasonmolenda.
When we switched to the LLVM .debug_line parser, the .dSYM-style path remapping logic stopped working for relative paths because of how RemapSourceFile silently fails for relative paths. This patch both makes the code more readable and fixes this particular bug.
One interesting thing I learned is that `Module::RemapSourceFile()` is a macOS-only code path that operates on on the `lldb::Module` level and is completely separate from `target.source-map`, which operates on a per-Target level.
https://reviews.llvm.org/D70037
Files:
lldb/packages/Python/lldbsuite/test/macosx/DBGSourcePathRemapping/Inputs/main.c
lldb/packages/Python/lldbsuite/test/macosx/DBGSourcePathRemapping/Inputs/relative.c
lldb/packages/Python/lldbsuite/test/macosx/DBGSourcePathRemapping/Makefile
lldb/packages/Python/lldbsuite/test/macosx/DBGSourcePathRemapping/TestDSYMSourcePathRemapping.py
lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D70037.228549.patch
Type: text/x-patch
Size: 5132 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20191109/d2609953/attachment.bin>
More information about the lldb-commits
mailing list