[Lldb-commits] [PATCH] D79777: Fix error in TestNumThreads.py when frame.GetFunctionName returns none

Muhammad Omair Javaid via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Tue May 12 17:16:20 PDT 2020


This revision was automatically updated to reflect the committed changes.
Closed by commit rG0796b170fb3b: Fix error in TestNumThreads.py when frame.GetFunctionName returns none (authored by omjavaid).
Herald added a project: LLDB.

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D79777/new/

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
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D79777.263577.patch
Type: text/x-patch
Size: 582 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20200513/2bd1ce57/attachment.bin>


More information about the lldb-commits mailing list