<div dir="ltr">+lldb-dev<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jan 15, 2016 at 1:47 PM, Vadim Chugunov <span dir="ltr"><<a href="mailto:vadimcn@gmail.com" target="_blank">vadimcn@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Thanks, that was it!</div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jan 15, 2016 at 1:00 PM, Pavel Labath <span dir="ltr"><<a href="mailto:labath@google.com" target="_blank">labath@google.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
The stopped event should have the "restarted" flag set. You can use<br>
the GetRestartedFromEvent function to check for that. (Let me know if<br>
they don't). I think you can get this (under varying circumstances) on<br>
other platforms as well, so you need to handle this everywhere.<br>
<br>
Somebody correct me if I'm wrong, but I believe that every restarted<br>
should be then followed by a running event.<br>
<br>
cheers,<br>
pl<br>
<br>
<br>
On 15 January 2016 at 19:35, Vadim Chugunov via lldb-dev<br>
<div><div><<a href="mailto:lldb-dev@lists.llvm.org" target="_blank">lldb-dev@lists.llvm.org</a>> wrote:<br>
> Hi,<br>
> I have a Python script that drives LLDB (in async mode), with a<br>
> listener attached to the process.<br>
> On OSX, upon the launch, LLDB emits a eStateRunning process state<br>
> event, and then eventually eStateStopped - when a breakpoint is hit.<br>
> On Linux, however, the initial eStateRunning is immediately followed<br>
> by eStateStopped and another eStateRunning, without any intervention<br>
> on my part. This messes things up for me somewhat, because my script<br>
> thinks that a breakpoint has been hit and tries examine state of the<br>
> process.<br>
> So I have 2 questions:<br>
> - Is it supposed to happen?<br>
> - What would be the best way to filter out these spurious stop events?<br>
> if is_linux and is_first_stop_event: ... feels a bit hacky.<br>
><br>
> thanks!<br>
</div></div>> _______________________________________________<br>
> lldb-dev mailing list<br>
> <a href="mailto:lldb-dev@lists.llvm.org" target="_blank">lldb-dev@lists.llvm.org</a><br>
> <a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev</a><br>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>