forked from OSchip/llvm-project
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:
parent
db7dbbec39
commit
c7e828eef1
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue