[lldb-dev] Host::LaunchProcess vs. ProcessPlugin::DoLaunch

Greg Clayton gclayton at apple.com
Tue Aug 12 15:47:04 PDT 2014


You should be implementing the launching in your Host layer one time:

    static Error
    Host::LaunchProcess (ProcessLaunchInfo &launch_info);

Then you should be using this in your ProcessPluginWindows plug-in.

> On Aug 8, 2014, at 5:14 PM, Zachary Turner <zturner at google.com> wrote:
> 
> 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




More information about the lldb-dev mailing list