Hello,
I would like to set the target in single-step mode and perform an action right
after each instruction is executed. Notably, it is crucial to do so
transparently, i.e. without interfering with user breakpoints, watchpoints,
stepping etc..
Could you provide me with some guidance on how to
You want to set up a stop-hook.
See “help target stop-hook”, specifically “help target stop-hook add”.
target stop-hook add -o “register read pc”
will read the pc each time the target stops.
From: lldb-dev On Behalf Of Vangelis
Tsiatsianas via lldb-dev
Sent: Friday, June 28, 2019 6:16 AM
To: v
Stop hooks only trigger when control is about to be returned to the user. And
in its normal mode, lldb doesn't step instruction all the time anyway... So I
don't think they would do what Vangelis wants. He would have to drive the
debugger with only the step-instruction command, which I think