[Lldb-commits] [PATCH] Implement ProcessLauncherWindows, and refactor some other code to be more modular.
zturner at google.com
Tue Oct 14 12:45:08 PDT 2014
Hi clayborg, jingham,
This implements Host::LaunchProcess for windows, and in doing so does some minor refactor to move towards a more modular process launching design, as discussed in detail previously on the list.
The original motivation for this is that launching processes on windows needs some very windows specific code, which would live most appropriately in source/Host/windows somewhere. However, there is already some common code that all platforms use when launching a process before delegating to the platform specific stuff, which lives in source/Host/common/Host.cpp which would be nice to reuse without duplicating.
This commonality has been abstracted into MonitoringProcessLauncher, a class which abstracts out the notion of launching a process using an arbitrary algorithm, and then monitoring it for state changes.
The windows specific launching code lives in ProcessLauncherWindows, and the posix specific launching code lives in ProcessLauncherPosix. after the refactor, a MonitoringProcessLauncher is created, and then an appropriate delegate launcher is created and given to the MonitoringProcessLauncher.
Comments have been inserted to indicate future places for cleanup, so that this refactor can happen iteratively instead as one massive risky CL.
Tested on Windows, MacOSX, and Linux. Did not see any test regressions.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 35977 bytes
Desc: not available
More information about the lldb-commits