omjavaid created this revision. omjavaid added a reviewer: labath. Herald added a subscriber: kristof.beyls.
This patch fixes an error happening in TestNumThreads.py when it encounters frame.GetFunctionName none for address only locations in stripped libc. This error was showing up on arm-linux docker container running lldb buildbot. https://reviews.llvm.org/D79777 Files: lldb/test/API/functionalities/thread/num_threads/TestNumThreads.py Index: lldb/test/API/functionalities/thread/num_threads/TestNumThreads.py =================================================================== --- lldb/test/API/functionalities/thread/num_threads/TestNumThreads.py +++ lldb/test/API/functionalities/thread/num_threads/TestNumThreads.py @@ -95,6 +95,8 @@ # the same breakpoint. def is_thread3(thread): for frame in thread: + if frame.GetFunctionName() is None: + continue if "thread3" in frame.GetFunctionName(): return True return False
Index: lldb/test/API/functionalities/thread/num_threads/TestNumThreads.py =================================================================== --- lldb/test/API/functionalities/thread/num_threads/TestNumThreads.py +++ lldb/test/API/functionalities/thread/num_threads/TestNumThreads.py @@ -95,6 +95,8 @@ # the same breakpoint. def is_thread3(thread): for frame in thread: + if frame.GetFunctionName() is None: + continue if "thread3" in frame.GetFunctionName(): return True return False
_______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits