llvm-project/debuginfo-tests/dexter/dex
OCHyams 4b55102aff [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
2021-05-25 13:28:06 +01:00
..
builder [debuginfo-tests][dexter] Add --builder gcc support for POSIX 2020-03-03 16:42:24 +00:00
command [dexter] Change --source-root-dir and add --debugger-use-relative-paths 2021-05-25 13:28:06 +01:00
debugger [dexter] Change --source-root-dir and add --debugger-use-relative-paths 2021-05-25 13:28:06 +01:00
dextIR [DexTer] Add step.UNKNOWN check for NoneType line numbers. 2020-03-16 16:38:41 +00:00
heuristic Reapply "Import Dexter to debuginfo-tests"" 2019-10-31 16:51:53 +00:00
tools [dexter] Change --source-root-dir and add --debugger-use-relative-paths 2021-05-25 13:28:06 +01:00
utils [debuginfo-tests] Warn, not error, if we can't delete working directory 2020-02-25 13:15:07 +00:00
__init__.py Reapply "Import Dexter to debuginfo-tests"" 2019-10-31 16:51:53 +00:00