summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lldb/scripts/Python/interface/SBThread.i4
-rw-r--r--lldb/test/python_api/thread/TestThreadAPI.py2
2 files changed, 5 insertions, 1 deletions
diff --git a/lldb/scripts/Python/interface/SBThread.i b/lldb/scripts/Python/interface/SBThread.i
index 943996b10ff..762626df9ae 100644
--- a/lldb/scripts/Python/interface/SBThread.i
+++ b/lldb/scripts/Python/interface/SBThread.i
@@ -79,6 +79,10 @@ public:
uint64_t
GetStopReasonDataAtIndex(uint32_t idx);
+ %feature("autodoc", "
+ Pass only an (int)length and expect to get a Python string describing the
+ stop reason.
+ ") GetStopDescription;
size_t
GetStopDescription (char *dst, size_t dst_len);
diff --git a/lldb/test/python_api/thread/TestThreadAPI.py b/lldb/test/python_api/thread/TestThreadAPI.py
index ed7f002c3ce..66cde0cde4a 100644
--- a/lldb/test/python_api/thread/TestThreadAPI.py
+++ b/lldb/test/python_api/thread/TestThreadAPI.py
@@ -148,7 +148,7 @@ class ThreadAPITestCase(TestBase):
#self.runCmd("process status")
# Due to the typemap magic (see lldb.swig), we pass in an (int)length to GetStopDescription
- # and expect to get a Python string as the result object!
+ # and expect to get a Python string as the return object!
# The 100 is just an arbitrary number specifying the buffer size.
stop_description = thread.GetStopDescription(100)
self.expect(stop_description, exe=False,
OpenPOWER on IntegriCloud