<div dir="ltr">Ok, thanks.</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Aug 19, 2014 at 3:16 PM, Greg Clayton <span dir="ltr"><<a href="mailto:gclayton@apple.com" target="_blank">gclayton@apple.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">It will get all process events delivered to it (like the initial eStateStopped event) to make sure the attach succeeded. The it will likely re-post the event after unhijacking the process events so LLDB knows about it.<br>

<br>
Attach either succeeds or fails immediately (when attaching to a pid or name), or waits when attaching to the next process by name. This can be interrupted by CTRL+C and there is some logic that deals with that.<br>
<span class="HOEnZb"><font color="#888888"><br>
Greg<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
> On Aug 19, 2014, at 3:04 PM, Todd Fiala <<a href="mailto:tfiala@google.com">tfiala@google.com</a>> wrote:<br>
><br>
> Hey guys,<br>
><br>
> In the local MacOSX debugging case when PlatformDarwin::Attach () is eventually called, what is this piece of code really doing?<br>
><br>
>                 ListenerSP listener_sp (new Listener("lldb.PlatformDarwin.attach.hijack"));<br>
>                 attach_info.SetHijackListener(listener_sp);<br>
>                 process_sp->HijackProcessEvents(listener_sp.get());<br>
><br>
> What will be that hijacker's responsibility?<br>
><br>
> Thanks!<br>
> --<br>
> Todd Fiala |   Software Engineer |     <a href="mailto:tfiala@google.com">tfiala@google.com</a> |     <a href="tel:650-943-3180" value="+16509433180">650-943-3180</a><br>
><br>
<br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><table cellspacing="0" cellpadding="0" style="color:rgb(136,136,136);font-family:'Times New Roman'"><tbody><tr style="color:rgb(85,85,85);font-family:sans-serif;font-size:small">
<td nowrap style="border-top-style:solid;border-top-color:rgb(213,15,37);border-top-width:2px">Todd Fiala |</td><td nowrap style="border-top-style:solid;border-top-color:rgb(51,105,232);border-top-width:2px"> Software Engineer |</td>
<td nowrap style="border-top-style:solid;border-top-color:rgb(0,153,57);border-top-width:2px"> <a href="mailto:tfiala@google.com" style="color:rgb(17,85,204)" target="_blank"><span style="background-color:rgb(255,255,204);color:rgb(34,34,34);background-repeat:initial initial">tfiala@google.com</span></a> |</td>
<td nowrap style="border-top-style:solid;border-top-color:rgb(238,178,17);border-top-width:2px"><font color="#1155cc"> <a>650-943-3180</a></font></td></tr></tbody></table><br></div>
</div>