As stated on this site. When I want to dump memory in gdb.
The start point is 0x1000
and end 0x2000
.
For lldb start is 0x1000
and end 0x1200
.
Is there a reason for this or is just a mistake ?
Main question is: How do I dump a memory area from 0x1000
to 0x2000
in lldb?
The following works fine for me:
Dumps 1000 bytes of memory, from the given start address, in hex format, to /tmp/mem.txt. Use --binary for binary format.
You could also use 'count' to state how many bytes you want to dump:
If you are in Xcode debugging environment and have a variable named 'note1', you can also use:
Reads at the actual location 0x1000 fail in Xcode for me ("memory read failed"), must be protected in some way.
As to the difference between 0x1200 and 0x2000 in the documentation, I think it's simply a small mistake.