Don't recommend using bytearray(buf, 'ascii') for binary data read with

SBProcess::ReadMemory - it will fail for anything with the high bit set.

llvm-svn: 189154
This commit is contained in:
Jason Molenda 2013-08-24 00:16:19 +00:00
parent db7dbbec39
commit c7e828eef1
1 changed files with 1 additions and 2 deletions

View File

@ -251,8 +251,7 @@ public:
# Read 4 bytes from address 'addr' and assume error.Success() is True.
content = process.ReadMemory(addr, 4, error)
# Use 'ascii' encoding as each byte of 'content' is within [0..255].
new_bytes = bytearray(content, 'ascii')
new_bytes = bytearray(content)
") ReadMemory;
size_t
ReadMemory (addr_t addr, void *buf, size_t size, lldb::SBError &error);