LLDB在地址处休息 [英] LLDB Break at Address
问题描述
对于可能出现的琐碎问题,我深表歉意,但由于Google一遍又一遍地给我同样不适用的答案,我陷入了困境.
I apologize for the likely trivial question but I am running into a wall as Google gives me the same non-applicable answers over and over.
我正在尝试在LLDB中设置一个断点.阅读文档后,我可以使用的选项是停在源代码中的特定行上或特定符号上.
I am trying to set a breakpoint in LLDB. After reading the documentation, the options available to me are to either stop on a certain line in the source or on a certain symbol.
我想做的是在某个内存位置上设置一个断点.
What I want to do is set a breakpoint on a certain memory location.
也不对该存储单元进行读写操作,只是在该位置上的指令将要执行时中断.
Not read-or-write to that memory location either but simply breaking when the instruction at that location is about to be executed.
使用伪代码:
break 0x00010000
断开.
我该怎么做?
推荐答案
breakpoint set
具有地址选项;您将输入help breakpoint set
来查看所有内容.对于您的特定示例,
breakpoint set
has an address option; you would type help breakpoint set
to see all of them. For your specific example,
(lldb) br s -a 0x10000
(您总是可以在lldb中使用明确的较短版本的命令名,因此不必键入breakpoint set
)
(You can always use shorter versions of command names in lldb that are unambiguous so typing out breakpoint set
isn't necessary)
这篇关于LLDB在地址处休息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!