DexUnreachable is a useful tool for specifying that lines shouldn't be stepped on. Right now they have to be placed in the source file; lets allow them to be placed instead in a detached .dex file, by adding on_line and line-range keyword arguments to the command.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Please can you update Commands.md too? LGTM with nit, thanks.
cross-project-tests/debuginfo-tests/dexter/dex/debugger/DebuggerControllers/ControllerHelpers.py | ||
---|---|---|
22–23 | Shouldn't this check come last? Otherwise IIUC this will return True when the positional line number of the command is hit, even when a line argument is specified. |
Comment Actions
Fiddle with conditions for a line having been stepped upon; add a test to check that DexUnreachables with on_line etc specified don't trigger using the line they were declared at.
cross-project-tests/debuginfo-tests/dexter/dex/debugger/DebuggerControllers/ControllerHelpers.py | ||
---|---|---|
22–23 | Good catch, I've updating this condition and added a test for that scenario (unreachable_not_cmd_lineno.cpp) |
Shouldn't this check come last? Otherwise IIUC this will return True when the positional line number of the command is hit, even when a line argument is specified.