[lldb-dev] Enabling single-step mode and acting on each executed instruction

2019-06-28 Thread Vangelis Tsiatsianas via lldb-dev
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

Re: [lldb-dev] Enabling single-step mode and acting on each executed instruction

2019-06-28 Thread Ted Woodward via lldb-dev
: via lldb-dev Cc: Vangelis Tsiatsianas Subject: [EXT] [lldb-dev] Enabling single-step mode and acting on each executed instruction 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

Re: [lldb-dev] Enabling single-step mode and acting on each executed instruction

2019-06-28 Thread Jim Ingham via lldb-dev
ne 28, 2019 6:16 AM > To: via lldb-dev > Cc: Vangelis Tsiatsianas > Subject: [EXT] [lldb-dev] Enabling single-step mode and acting on each > executed instruction > > Hello, > > I would like to set the target in single-step mode and perform an action > right after ea

Re: [lldb-dev] Enabling single-step mode and acting on each executed instruction

2019-06-29 Thread Vangelis Tsiatsianas via lldb-dev
Thank you very much for your replies! I took a look at ThreadPlanTracer and found out that the crash reason was the call of a virtual method during object construction:virtual Process.UpdateThreadList()└── ProcessGDBRemote.UpdateThreadList()    └── new ThreadGDBRemote()        └── new Thread()     

Re: [lldb-dev] Enabling single-step mode and acting on each executed instruction

2019-07-01 Thread Jim Ingham via lldb-dev
> >>> On Jun 28, 2019, at 7:09 AM, Ted Woodward via lldb-dev >>> wrote: >>> >>> You want to set up a stop-hook. >>> >>> See “help target stop-hook”, specifically “help target stop-hook add”. >>> >>> target stop-

Re: [lldb-dev] Enabling single-step mode and acting on each executed instruction

2019-07-01 Thread Vangelis Tsiatsianas via lldb-dev
s to >>> take a stab at making this work reliably again, that would be awesome! >>> >>> Jim >>> >>> >>> >>>> On Jun 28, 2019, at 7:09 AM, Ted Woodward via lldb-dev >>>> wrote: >>>> >>>> You want to

Re: [lldb-dev] Enabling single-step mode and acting on each executed instruction

2019-07-01 Thread Jim Ingham via lldb-dev
t;>>> broadly and were waiting for some more interest to spend time cleaning it >>>> up and writing tests, etc. Then years passed... So it is not entirely >>>> surprising that the facility needs some attention. If somebody wants to >>>> take a st

Re: [lldb-dev] Enabling single-step mode and acting on each executed instruction

2019-07-02 Thread Vangelis Tsiatsianas via lldb-dev
>>>>> only instruction single step when it is realizing the more complex >>>>> stepping operations, and then has hooks on each instruction stop. >>>>> >>>>> Sean and I added this facility way way back in the early days of lldb

Re: [lldb-dev] Enabling single-step mode and acting on each executed instruction

2019-07-02 Thread Jim Ingham via lldb-dev
;t think they would do what Vangelis wants. He >>>>>> would have to drive the debugger with only the step-instruction command, >>>>>> which I think qualifies as interfering with stepping. >>>>>> >>>>>> The ThreadPlanTracer

Re: [lldb-dev] Enabling single-step mode and acting on each executed instruction

2019-07-05 Thread Vangelis Tsiatsianas via lldb-dev
mit this patch for review? >>>>>> >>>>>> >>>>>> >>>>>> >>>>>>> On 28 Jun 2019, at 20:50, Jim Ingham wrote: >>>>>>> >>>>>>> Stop hooks only trigger when cont