[lldb-dev] Host::LaunchProcess vs. ProcessPlugin::DoLaunch
zturner at google.com
Sat Aug 9 09:57:29 PDT 2014
Thanks. So what I take away from this is that they basically do the same
thing, and Process::DoLaunch() can simply call Host::LaunchProcess.
On Sat, Aug 9, 2014 at 12:30 AM, Jean-Daniel Dupas <mailing at xenonium.com>
> Here is a discussion that may give you some answers:
> For the record, I wrote a process plugin, and end-up not having to
> implements the Process:DoLaunch method at all.
> On OS X, all processes are launched by the platform which then call
> DoAttach. So the Process::DoLaunch code path is never use.
> Le 9 août 2014 à 02:14, Zachary Turner <zturner at google.com> a écrit :
> > 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?
> > 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?
> > _______________________________________________
> > lldb-dev mailing list
> > lldb-dev at cs.uiuc.edu
> > http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the lldb-dev