diff options
author | Jeremy Morse <jeremy.morse@sony.com> | 2019-11-01 13:20:26 +0000 |
---|---|---|
committer | Jeremy Morse <jeremy.morse@sony.com> | 2019-11-01 13:30:26 +0000 |
commit | e34179aad165fdab060d2da52703f9353d490911 (patch) | |
tree | f459afa988a0d0d09e7a129f0512f8f0c49e233c | |
parent | fc98907535c0a41747e89093d45a888f54af1800 (diff) | |
download | bcm5719-llvm-e34179aad165fdab060d2da52703f9353d490911.tar.gz bcm5719-llvm-e34179aad165fdab060d2da52703f9353d490911.zip |
[Dexter] Cope better with empty source locations
When running a program, Dexter single steps if it's in one of the source
files under test, or free-runs if it isn't. Handle the circumstance where
the current source file simply isn't known.
-rw-r--r-- | debuginfo-tests/dexter/dex/debugger/DebuggerBase.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/debuginfo-tests/dexter/dex/debugger/DebuggerBase.py b/debuginfo-tests/dexter/dex/debugger/DebuggerBase.py index 8013ceb6436..57fcad0de42 100644 --- a/debuginfo-tests/dexter/dex/debugger/DebuggerBase.py +++ b/debuginfo-tests/dexter/dex/debugger/DebuggerBase.py @@ -153,6 +153,8 @@ class DebuggerBase(object, metaclass=abc.ABCMeta): def in_source_file(self, step_info): if not step_info.current_frame: return False + if not step_info.current_location.path: + return False if not os.path.exists(step_info.current_location.path): return False return any(os.path.samefile(step_info.current_location.path, f) \ |