diff options
| author | Johnny Chen <johnny.chen@apple.com> | 2011-12-19 19:38:09 +0000 |
|---|---|---|
| committer | Johnny Chen <johnny.chen@apple.com> | 2011-12-19 19:38:09 +0000 |
| commit | cdd7e8b14ae8ff4e905dbb17d59926a1bd21e259 (patch) | |
| tree | 2d474ad64ed6b298d723a44910d6009409f1d9e5 /lldb | |
| parent | c4db30e3580a6e4b4f12ff5339568324bd460985 (diff) | |
| download | bcm5719-llvm-cdd7e8b14ae8ff4e905dbb17d59926a1bd21e259.tar.gz bcm5719-llvm-cdd7e8b14ae8ff4e905dbb17d59926a1bd21e259.zip | |
Fix Python docstring for SBThread.GetStopDescription().
llvm-svn: 146890
Diffstat (limited to 'lldb')
| -rw-r--r-- | lldb/scripts/Python/interface/SBThread.i | 4 | ||||
| -rw-r--r-- | lldb/test/python_api/thread/TestThreadAPI.py | 2 |
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, |

