[debuginfo-tests] e34179a - [Dexter] Cope better with empty source locations

Jeremy Morse via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 1 06:30:56 PDT 2019


Author: Jeremy Morse
Date: 2019-11-01T13:30:26Z
New Revision: e34179aad165fdab060d2da52703f9353d490911

URL: https://github.com/llvm/llvm-project/commit/e34179aad165fdab060d2da52703f9353d490911
DIFF: https://github.com/llvm/llvm-project/commit/e34179aad165fdab060d2da52703f9353d490911.diff

LOG: [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.

Added: 
    

Modified: 
    debuginfo-tests/dexter/dex/debugger/DebuggerBase.py

Removed: 
    


################################################################################
diff  --git a/debuginfo-tests/dexter/dex/debugger/DebuggerBase.py b/debuginfo-tests/dexter/dex/debugger/DebuggerBase.py
index 8013ceb64369..57fcad0de42f 100644
--- a/debuginfo-tests/dexter/dex/debugger/DebuggerBase.py
+++ b/debuginfo-tests/dexter/dex/debugger/DebuggerBase.py
@@ -153,6 +153,8 @@ def start(self):
     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) \


        


More information about the llvm-commits mailing list