<div dir="ltr">Hello,<br><br>I'm trying to figure out how to write a simple tracer.  Specifically, I want to<br>perform some 'step's after a breakpoint callback fires.  How do I do that in<br>async mode?<br><br>Here's my attempt:<br><a href="https://gist.github.com/nkaretnikov/6ee00afabf73332c5a89eacb610369c2" target="_blank">https://gist.github.com/nkaretnikov/6ee00afabf73332c5a89eacb610369c2</a><br><br>The problem is that pc is not updated (pc: 0xffffffffffffffff) when the loop<br>executes the second time.<br><br>I've also attempted to refactor this code based on:<br><a href="http://llvm.org/svn/llvm-project/lldb/trunk/examples/python/process_events.py" target="_blank">http://llvm.org/svn/llvm-project/lldb/trunk/examples/python/process_events.py</a><br><br>My idea was to have a similar loop as the one that's after 'listener = ...'.  It<br>would sit there waiting for events, and I would somehow broadcast an event from<br>the callback.  Maybe with 'state == lldb.eStateStopped' and a global variable<br>allowing me to distinguish this event type from the rest.<br><br>But I can't find a way to do this.  Either I get the same behavior as without<br>events or my events are ignored completely (likely because I use them<br>incorrectly).<br><br>I haven't published the code of the event version, but I can do that later<br>unless someone proposes a working solution right away.<br><br>Thanks,<br>Nikita<br></div>