diff options
author | Johnny Chen <johnny.chen@apple.com> | 2011-12-15 22:34:59 +0000 |
---|---|---|
committer | Johnny Chen <johnny.chen@apple.com> | 2011-12-15 22:34:59 +0000 |
commit | 80e3e84ddb99c1a9306530cf18de6d836c22f6a3 (patch) | |
tree | 2443dbfbfcfe953fe471479f933d0acb3c2a88d3 | |
parent | 16408325afbc2d0a55cf5128049f3be6f8529a97 (diff) | |
download | bcm5719-llvm-80e3e84ddb99c1a9306530cf18de6d836c22f6a3.tar.gz bcm5719-llvm-80e3e84ddb99c1a9306530cf18de6d836c22f6a3.zip |
Add fuzz calls for newly added SBProcess methods. Fix a typo in the audodoc of SBProcess.ReadCStringFromMemory().
llvm-svn: 146695
-rw-r--r-- | lldb/scripts/Python/interface/SBProcess.i | 2 | ||||
-rw-r--r-- | lldb/test/python_api/default-constructor/sb_process.py | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/lldb/scripts/Python/interface/SBProcess.i b/lldb/scripts/Python/interface/SBProcess.i index 920aefb4c80..da8a28f209a 100644 --- a/lldb/scripts/Python/interface/SBProcess.i +++ b/lldb/scripts/Python/interface/SBProcess.i @@ -215,7 +215,7 @@ public: # 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 diff --git a/lldb/test/python_api/default-constructor/sb_process.py b/lldb/test/python_api/default-constructor/sb_process.py index f74df33ce10..ce4c5c6bd5c 100644 --- a/lldb/test/python_api/default-constructor/sb_process.py +++ b/lldb/test/python_api/default-constructor/sb_process.py @@ -36,6 +36,9 @@ def fuzz_obj(obj): 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) |