[debuginfo-tests] 6e217ba - [Dexter] Account for another no-lineno scenario
Jeremy Morse via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 1 06:43:08 PDT 2019
Author: Jeremy Morse
Date: 2019-11-01T13:41:56Z
New Revision: 6e217ba3ea9f5730d477facf8164eeb789016a4b
URL: https://github.com/llvm/llvm-project/commit/6e217ba3ea9f5730d477facf8164eeb789016a4b
DIFF: https://github.com/llvm/llvm-project/commit/6e217ba3ea9f5730d477facf8164eeb789016a4b.diff
LOG: [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.
Added:
Modified:
debuginfo-tests/dexter/dex/command/commands/DexExpectWatchBase.py
Removed:
################################################################################
diff --git a/debuginfo-tests/dexter/dex/command/commands/DexExpectWatchBase.py b/debuginfo-tests/dexter/dex/command/commands/DexExpectWatchBase.py
index e6422d14098c..769c214b7096 100644
--- a/debuginfo-tests/dexter/dex/command/commands/DexExpectWatchBase.py
+++ b/debuginfo-tests/dexter/dex/command/commands/DexExpectWatchBase.py
@@ -168,7 +168,8 @@ def eval(self, step_collection):
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:
More information about the llvm-commits
mailing list