Fix Python docstring for SBThread.GetStopDescription().
git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@146890 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/scripts/Python/interface/SBThread.i b/scripts/Python/interface/SBThread.i
index 943996b..762626d 100644
--- a/scripts/Python/interface/SBThread.i
+++ b/scripts/Python/interface/SBThread.i
@@ -79,6 +79,10 @@
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/test/python_api/thread/TestThreadAPI.py b/test/python_api/thread/TestThreadAPI.py
index ed7f002..66cde0c 100644
--- a/test/python_api/thread/TestThreadAPI.py
+++ b/test/python_api/thread/TestThreadAPI.py
@@ -148,7 +148,7 @@
#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,