summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lldb/test/lldbutil.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/lldb/test/lldbutil.py b/lldb/test/lldbutil.py
index 4d606ac9347..4a299ea6903 100644
--- a/lldb/test/lldbutil.py
+++ b/lldb/test/lldbutil.py
@@ -210,7 +210,10 @@ def value_type_to_str(enum):
# ==================================================
def get_stopped_threads(process, reason):
- """Returns the thread(s) with the specified stop reason in a list."""
+ """Returns the thread(s) with the specified stop reason in a list.
+
+ The list can be empty if no such thread exists.
+ """
threads = []
for t in process:
if t.GetStopReason() == reason:
OpenPOWER on IntegriCloud