请问如何下内存访问断点.有点头痛

watchpoint set v -w read _abc4 //(正确)这是对一个变量下访问断点…
watchpoint set v -w read 0x123456;//(错误) 不能直接设置地址.
watchpoint set expression — 0x123456;//(正确)这是下内存写入断点…
请问如何设置lldb的内存访问断点.
如设置 0x123456 处内存访问断点.

貌似LLDB还不支持对内存下watchpoint。书上写这里时我查了很多资料,包括官方文档,都没有找到在内存上下watchpoint的例子,因此书上就没有写watchpoint相关的东西

…我也是听你的 上google才查到 能下内存写入断点.但是内存读取断点我就不知道怎么下了.

非常感谢…!!

watchpoint set expression -w read -s 4 – 0x00295778