如何使用lldb在0xb0987654中打印内存? [英] How to print memory in 0xb0987654 using lldb?

查看:662
本文介绍了如何使用lldb在0xb0987654中打印内存?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用LLDB,我想知道如何在内存0xb0987654中打印该值?

I am using LLDB, I am wondering how to print the value in the memory 0xb0987654?

推荐答案

Xcode有一个非常漂亮的 Memory Browser 窗口,它将很好地显示内存地址的内容.它还可以让您控制字节分组和显示的字节数,以及向后或向前移动内存页面:

Xcode has a very nice Memory Browser window, which will very nicely display the contents of memory addresses. It also lets you control byte grouping and number of bytes displayed, and move back or forward a memory page:

您可以通过按⌘^⌥⇧M来访问它.输入后,按Enter键以在主编辑器中打开内存浏览器.

You can access it by pressing ⌘^⌥⇧M. After entering it, press enter to open the memory browser in the main editor.

调试->调试工作流程->查看内存

请注意其左下角的字段,您可以在其中粘贴要检查的内存地址!

Notice the field on its bottom left corner where you can paste the memory address you want to inspect!

此处的文档: https://developer. apple.com/library/ios/recipes/xcode_help-debugger/articles/viewing_memory.html

此处的相关答案:如何打开Xcode 4中的内存浏览器?

这篇关于如何使用lldb在0xb0987654中打印内存?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆