diff options
author | Han Ming Ong <hanming@apple.com> | 2012-03-02 01:02:04 +0000 |
---|---|---|
committer | Han Ming Ong <hanming@apple.com> | 2012-03-02 01:02:04 +0000 |
commit | 04cf1bad35b62530f194415a936e27b663264cef (patch) | |
tree | a677155afa45d1294f702afa63ee8adfe4db2bda /lldb/source/API/SBTarget.cpp | |
parent | 8d5c83f6ef5fce44b6375aa208c2768f3634e7ee (diff) | |
download | bcm5719-llvm-04cf1bad35b62530f194415a936e27b663264cef.tar.gz bcm5719-llvm-04cf1bad35b62530f194415a936e27b663264cef.zip |
<rdar://problem/10967188>
When using launch_info for launching with a target already set, we should just prepend the target's path as the first argument.
llvm-svn: 151867
Diffstat (limited to 'lldb/source/API/SBTarget.cpp')
-rw-r--r-- | lldb/source/API/SBTarget.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lldb/source/API/SBTarget.cpp b/lldb/source/API/SBTarget.cpp index 58a6814b5ed..d4810f580db 100644 --- a/lldb/source/API/SBTarget.cpp +++ b/lldb/source/API/SBTarget.cpp @@ -720,10 +720,9 @@ SBTarget::Launch (SBLaunchInfo &sb_launch_info, SBError& error) sb_process.SetSP (process_sp); lldb_private::ProcessLaunchInfo &launch_info = sb_launch_info.ref(); - bool add_exe_as_first_argv = true; //launch_info.GetArguments().GetArgumentCount() == 0; Module *exe_module = target_sp->GetExecutableModulePointer(); if (exe_module) - launch_info.SetExecutableFile(exe_module->GetPlatformFileSpec(), add_exe_as_first_argv); + launch_info.SetExecutableFile(exe_module->GetPlatformFileSpec(), true); const ArchSpec &arch_spec = target_sp->GetArchitecture(); if (arch_spec.IsValid()) |