How to modify memory contents using LLDB?
assembly, gdb, hexdump, lldb, osx-mavericks
Solution
According to lldb-basics guide LLDB alternative is `memory write`.
Also `(lldb) help memory write` defines such an input format:
memory write -i <filename> [-s <byte-size>] [-o <offset>] <address> <value> [<value> [...]]
-f <format> ( --format <format> )
Specify a format to be used for display.
-i <filename> ( --infile <filename> )
Write memory using the contents of a file.
-o <offset> ( --offset <offset> )
Start writng bytes from an offset within the input file.
-s <byte-size> ( --size <byte-size> )
The size in bytes to use when displaying with the selected format.
So, in Your case, something like `(lldb) memory write 0x02ae4 0x12` should just work.
Problem
What is the equivalent lldb command to the one shown below in GDB? (gdb) set {char}0x02ae4=0x12 The values are arbitrary examples. With GDB I was able to easily edit the byte code at a given hex address while looking at dumps in terminal. Since I upgraded to mavericks I have been trying to fiddle around with lldb a little more but I am having a tough time in a few areas. Perhaps it doesn't even possess this functionality yet..