diff options
author | Jeremy Morse <jeremy.morse@sony.com> | 2019-11-01 13:41:56 +0000 |
---|---|---|
committer | Jeremy Morse <jeremy.morse@sony.com> | 2019-11-01 13:41:56 +0000 |
commit | 6e217ba3ea9f5730d477facf8164eeb789016a4b (patch) | |
tree | 08c1e28217f14cb0df95dcd65afa17f9902f1835 | |
parent | e34179aad165fdab060d2da52703f9353d490911 (diff) | |
download | bcm5719-llvm-6e217ba3ea9f5730d477facf8164eeb789016a4b.tar.gz bcm5719-llvm-6e217ba3ea9f5730d477facf8164eeb789016a4b.zip |
[Dexter] Account for another no-lineno scenario
This is another part of Dexter that had never seen a missing source
location before, now newly turning up on Darwin.
-rw-r--r-- | debuginfo-tests/dexter/dex/command/commands/DexExpectWatchBase.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/debuginfo-tests/dexter/dex/command/commands/DexExpectWatchBase.py b/debuginfo-tests/dexter/dex/command/commands/DexExpectWatchBase.py index e6422d14098..769c214b709 100644 --- a/debuginfo-tests/dexter/dex/command/commands/DexExpectWatchBase.py +++ b/debuginfo-tests/dexter/dex/command/commands/DexExpectWatchBase.py @@ -168,7 +168,8 @@ class DexExpectWatchBase(CommandBase): for step in step_collection.steps: loc = step.current_location - if (os.path.exists(loc.path) and os.path.exists(self.path) and + if (loc and os.path.exists(loc.path) and + os.path.exists(self.path) and os.path.samefile(loc.path, self.path) and loc.lineno in self.line_range): try: |