From 0796b170fb3bf38e6cc4e59746120b37c9a9cd9f Mon Sep 17 00:00:00 2001 From: Muhammad Omair Javaid Date: Wed, 13 May 2020 05:12:48 +0500 Subject: [PATCH] Fix error in TestNumThreads.py when frame.GetFunctionName returns none Summary: 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. Reviewers: labath Reviewed By: labath Subscribers: kristof.beyls, lldb-commits Differential Revision: https://reviews.llvm.org/D79777 --- lldb/test/API/functionalities/thread/num_threads/TestNumThreads.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lldb/test/API/functionalities/thread/num_threads/TestNumThreads.py b/lldb/test/API/functionalities/thread/num_threads/TestNumThreads.py index cfd2941..7a4a6d0 100644 --- a/lldb/test/API/functionalities/thread/num_threads/TestNumThreads.py +++ b/lldb/test/API/functionalities/thread/num_threads/TestNumThreads.py @@ -95,6 +95,8 @@ class NumberOfThreadsTestCase(TestBase): # 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 -- 2.7.4