[Lldb-commits] [lldb] r146695 - in /lldb/trunk: scripts/Python/interface/SBProcess.i test/python_api/default-constructor/sb_process.py
Johnny Chen
johnny.chen at apple.com
Thu Dec 15 14:35:00 PST 2011
Author: johnny
Date: Thu Dec 15 16:34:59 2011
New Revision: 146695
URL: http://llvm.org/viewvc/llvm-project?rev=146695&view=rev
Log:
Add fuzz calls for newly added SBProcess methods. Fix a typo in the audodoc of SBProcess.ReadCStringFromMemory().
Modified:
lldb/trunk/scripts/Python/interface/SBProcess.i
lldb/trunk/test/python_api/default-constructor/sb_process.py
Modified: lldb/trunk/scripts/Python/interface/SBProcess.i
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/scripts/Python/interface/SBProcess.i?rev=146695&r1=146694&r2=146695&view=diff
==============================================================================
--- lldb/trunk/scripts/Python/interface/SBProcess.i (original)
+++ lldb/trunk/scripts/Python/interface/SBProcess.i Thu Dec 15 16:34:59 2011
@@ -215,7 +215,7 @@
# Read a C string of at most 256 bytes from address '0x1000'
error = lldb.SBError()
- cstring = process.ReadMemory(0x1000, 256, error)
+ cstring = process.ReadCStringFromMemory(0x1000, 256, error)
if error.Success():
print 'cstring: ', cstring
else
Modified: lldb/trunk/test/python_api/default-constructor/sb_process.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/python_api/default-constructor/sb_process.py?rev=146695&r1=146694&r2=146695&view=diff
==============================================================================
--- lldb/trunk/test/python_api/default-constructor/sb_process.py (original)
+++ lldb/trunk/test/python_api/default-constructor/sb_process.py Thu Dec 15 16:34:59 2011
@@ -36,6 +36,9 @@
obj.Signal(7)
obj.ReadMemory(0x0000ffff, 10, error)
obj.WriteMemory(0x0000ffff, "hi data", error)
+ obj.ReadCStringFromMemory(0x0, 128, error)
+ obj.ReadUnsignedFromMemory(0xff, 4, error)
+ obj.ReadPointerFromMemory(0xff, error)
obj.GetBroadcaster()
obj.GetDescription(lldb.SBStream())
obj.LoadImage(lldb.SBFileSpec(), error)
More information about the lldb-commits
mailing list