summaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
diff options
context:
space:
mode:
authorOCHyams <orlando.hyams@sony.com>2021-05-25 13:09:14 +0100
committerOCHyams <orlando.hyams@sony.com>2021-05-25 13:28:06 +0100
commit4b55102aff29f5ce82b38a9e4a819b959e29ecd7 (patch)
tree52c975f34680509381bc553b98ea0a0240f3fc64 /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
parent8f4db14d1c8f12cade77873f8815497026d21f95 (diff)
[dexter] Change --source-root-dir and add --debugger-use-relative-paths
We want to use `DexDeclareFile` to specify paths relative to a project root directory. The option `--source-root-dir`, prior to this patch, causes dexter to strip the path prefix from commands before passing them to a debugger, and appends the prefix to file paths returned from a debugger. This patch changes the behviour of `--source-root-dir`. Relative paths in commands, made possible with `DexDeclareFile(relative/path)`, are appended to the `--source-root-dir` directory. A new option, `--debugger-use-relative-paths`, can be used alongside `--source-root-dir` to reproduce the old behaviour: all paths passed to the debugger will be made relative to `--source-root-dir`. I've added a regression test source_root_dir.dex for this new behaviour, and modified the existing `--source-root-dir` regression and unit tests to use `--debugger-use-relative-paths`. Reviewed By: jmorse Differential Revision: https://reviews.llvm.org/D100307
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp')
0 files changed, 0 insertions, 0 deletions