summaryrefslogtreecommitdiffstats
path: root/lldb/scripts/Python/interface/SBDebugger.i
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2011-12-15 03:14:23 +0000
committerGreg Clayton <gclayton@apple.com>2011-12-15 03:14:23 +0000
commite91b7957b2d4ea2c880b303e543c711566cb7cd0 (patch)
tree976f5ea578018c47413a4e9382485ef863476505 /lldb/scripts/Python/interface/SBDebugger.i
parent2c74eedbba4c278635345d7de58a02c3f9f36f07 (diff)
downloadbcm5719-llvm-e91b7957b2d4ea2c880b303e543c711566cb7cd0.tar.gz
bcm5719-llvm-e91b7957b2d4ea2c880b303e543c711566cb7cd0.zip
Expose new read memory fucntion through python in SBProcess:
size_t SBProcess::ReadCStringFromMemory (addr_t addr, void *buf, size_t size, lldb::SBError &error); uint64_t SBProcess::ReadUnsignedFromMemory (addr_t addr, uint32_t byte_size, lldb::SBError &error); lldb::addr_t SBProcess::ReadPointerFromMemory (addr_t addr, lldb::SBError &error); These ReadCStringFromMemory() has some SWIG type magic that makes it return the python string directly and the "buf" is not needed: error = SBError() max_cstr_len = 256 cstr = lldb.process.ReadCStringFromMemory (0x1000, max_cstr_len, error) if error.Success(): .... The other two functions behave as expteced. This will make it easier to get integer values from the inferior process that are correctly byte swapped. Also for pointers, the correct pointer byte size will be used. Also cleaned up a few printf style warnings for the 32 bit lldb build on darwin. llvm-svn: 146636
Diffstat (limited to 'lldb/scripts/Python/interface/SBDebugger.i')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud