LLDB Break at Address

前端 未结 2 871
不知归路
不知归路 2021-02-07 10:32

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.

I am trying to set a breakpoin

相关标签:
2条回答
  • 2021-02-07 11:13

    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
    

    (You can always use shorter versions of command names in lldb that are unambiguous so typing out breakpoint set isn't necessary)

    0 讨论(0)
  • 2021-02-07 11:27

    The alternative is to use "process launch --stop-at-entry ...". This will allow you to set breakpoints after the program is launched and then "continue" will let you stop on your first breakpoint. Interestingly (testing in Ubuntu) using --stop-at-entry takes a lot longer to start (~3 seconds). I need to use this on OS X and maybe it will be quicker there.

    0 讨论(0)
提交回复
热议问题