<div dir="ltr">So one thing I'm still unclear about, is exactly when I will receive a launch request through the Process plugin versus when I will receive the request directly through the Host without first going through the Process plugin.</div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Aug 9, 2014 at 9:57 AM, Zachary Turner <span dir="ltr"><<a href="mailto:zturner@google.com" target="_blank">zturner@google.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.  So what I take away from this is that they basically do the same thing, and Process::DoLaunch() can simply call Host::LaunchProcess.  </div>
<div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">
On Sat, Aug 9, 2014 at 12:30 AM, Jean-Daniel Dupas <span dir="ltr"><<a href="mailto:mailing@xenonium.com" target="_blank">mailing@xenonium.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Here is a discussion that may give you some answers:<br>
<br>
<a href="http://comments.gmane.org/gmane.comp.debugging.lldb.devel/2805" target="_blank">http://comments.gmane.org/gmane.comp.debugging.lldb.devel/2805</a><br>
<br>
For the record, I wrote a process plugin, and end-up not having to implements the Process:DoLaunch method at all.<br>
On OS X, all processes are launched by the platform which then call DoAttach. So the Process::DoLaunch code path is never use.<br>
<br>
Le 9 août 2014 à 02:14, Zachary Turner <<a href="mailto:zturner@google.com" target="_blank">zturner@google.com</a>> a écrit :<br>
<div><br>
> Why are there different code paths for launching a process through these two methods?  Shouldn't there just be one codepath for launching a process?<br>
><br>
> I've implemented a very primitive process launch for Windows in ProcessPluginWindows::DoLaunch, but now I'm running into cases where tests are failing because Host::LaunchProcess isn't implemented yet on Windows.  What do I need to understand about the differences between these two codepaths to make sure I implement the two correctly?  And is there perhaps a way to refactor some of this code so that all of the process-spawning code lives in the same place, and the launch args are flexible enough to support all of the different use cases?<br>


</div>> _______________________________________________<br>
> lldb-dev mailing list<br>
> <a href="mailto:lldb-dev@cs.uiuc.edu" target="_blank">lldb-dev@cs.uiuc.edu</a><br>
> <a href="http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev</a><br>
<br>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>