How to print the contents of a memory address using LLDB?

后端 未结 5 1263
一生所求
一生所求 2020-12-22 23:08

I am using LLDB and wondering how to print the contents of a specific memory address, for example 0xb0987654.

5条回答
  •  情书的邮戳
    2020-12-22 23:58

    "me" is the command you're looking for.

    For example, this lldb command:

    me -r -o /tmp/mem.txt -c512 0xb0987654
    

    will copy 512 bytes from your memory address into a file at /tmp/mem.txt.

提交回复
热议问题