[Lldb-commits] [PATCH] D85235: [lldb] Make SBTarget::LaunchSimple start form the target's LaunchInfo
Jonas Devlieghere via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Tue Aug 4 23:20:10 PDT 2020
JDevlieghere added inline comments.
Comment at: lldb/source/Target/Target.cpp:3918
+ if (Module *exe_module = m_target->GetExecutableModulePointer())
+ m_launch_info.SetExecutableFile(exe_module->GetPlatformFileSpec(), true);
m_launch_info.SetArg0(GetArg0()); // FIXME: Arg0 callback doesn't work
Unfortunately doing this here doesn't work. Some of the code that's using `GetProcessLaunchInfo()` depends on the assumption that the `m_arguments` list in `ProcessInfo` does not contain argv, while other code, most notably the code to actually launch a binary, depends on it being the first argument. So whatever I do here, I break some code.
CHANGES SINCE LAST ACTION
More information about the lldb-commits