[Lldb-commits] [lldb] r146890 - in /lldb/trunk: scripts/Python/interface/SBThread.i test/python_api/thread/TestThreadAPI.py
Johnny Chen
johnny.chen at apple.com
Mon Dec 19 11:38:10 PST 2011
Author: johnny
Date: Mon Dec 19 13:38:09 2011
New Revision: 146890
URL: http://llvm.org/viewvc/llvm-project?rev=146890&view=rev
Log:
Fix Python docstring for SBThread.GetStopDescription().
Modified:
lldb/trunk/scripts/Python/interface/SBThread.i
lldb/trunk/test/python_api/thread/TestThreadAPI.py
Modified: lldb/trunk/scripts/Python/interface/SBThread.i
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/scripts/Python/interface/SBThread.i?rev=146890&r1=146889&r2=146890&view=diff
==============================================================================
--- lldb/trunk/scripts/Python/interface/SBThread.i (original)
+++ lldb/trunk/scripts/Python/interface/SBThread.i Mon Dec 19 13:38:09 2011
@@ -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);
Modified: lldb/trunk/test/python_api/thread/TestThreadAPI.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/python_api/thread/TestThreadAPI.py?rev=146890&r1=146889&r2=146890&view=diff
==============================================================================
--- lldb/trunk/test/python_api/thread/TestThreadAPI.py (original)
+++ lldb/trunk/test/python_api/thread/TestThreadAPI.py Mon Dec 19 13:38:09 2011
@@ -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,
More information about the lldb-commits
mailing list