Home
last modified time | relevance | path

Searched refs:launch_info (Results 1 – 25 of 58) sorted by relevance

123

/freebsd/contrib/llvm-project/lldb/source/Commands/
H A DCommandOptionsProcessLaunch.cpp41 launch_info.GetFlags().Set(eLaunchFlagStopAtEntry); in SetOptionValue()
50 launch_info.AppendFileAction(action); in SetOptionValue()
58 launch_info.AppendFileAction(action); in SetOptionValue()
66 launch_info.AppendFileAction(action); in SetOptionValue()
71 launch_info.SetProcessPluginName(option_arg); in SetOptionValue()
79 launch_info.AppendFileAction(action); in SetOptionValue()
81 launch_info.AppendFileAction(action); in SetOptionValue()
83 launch_info.AppendFileAction(action); in SetOptionValue()
88 launch_info.SetWorkingDirectory(FileSpec(option_arg)); in SetOptionValue()
92 launch_info in SetOptionValue()
[all...]
H A DCommandOptionsProcessLaunch.h35 launch_info.Clear(); in OptionParsingStarting()
43 lldb_private::ProcessLaunchInfo launch_info; variable
H A DCommandObjectPlatform.cpp1090 m_options.launch_info.GetExecutableFile() = exe_module->GetFileSpec(); in DoExecute()
1092 m_options.launch_info.GetExecutableFile().GetPath(exe_path); in DoExecute()
1094 m_options.launch_info.GetArguments().AppendArgument(exe_path); in DoExecute()
1095 m_options.launch_info.GetArchitecture() = exe_module->GetArchitecture(); in DoExecute()
1099 m_options.launch_info.SetProcessPluginName("ScriptedProcess"); in DoExecute()
1102 m_options.launch_info.SetScriptedMetadata(metadata_sp); in DoExecute()
1103 target->SetProcessLaunchInfo(m_options.launch_info); in DoExecute()
1107 if (m_options.launch_info.GetExecutableFile()) { in DoExecute()
1110 m_options.launch_info.GetArguments().AppendArguments(args); in DoExecute()
1115 m_options.launch_info.SetArguments(args, first_arg_is_executable); in DoExecute()
[all …]
H A DCommandObjectProcess.cpp182 m_options.launch_info.SetProcessPluginName("ScriptedProcess"); in DoExecute()
185 m_options.launch_info.SetScriptedMetadata(metadata_sp); in DoExecute()
186 target->SetProcessLaunchInfo(m_options.launch_info); in DoExecute()
190 m_options.launch_info.GetFlags().Set(eLaunchFlagDisableASLR); in DoExecute()
192 m_options.launch_info.GetFlags().Clear(eLaunchFlagDisableASLR); in DoExecute()
195 m_options.launch_info.GetFlags().Set(eLaunchFlagInheritTCCFromParent); in DoExecute()
198 m_options.launch_info.GetFlags().Set(eLaunchFlagDetachOnError); in DoExecute()
201 m_options.launch_info.GetFlags().Set(eLaunchFlagDisableSTDIO); in DoExecute()
205 m_options.launch_info.GetEnvironment().insert(target_env.begin(), in DoExecute()
211 m_options.launch_info.GetArguments().AppendArgument( in DoExecute()
[all …]
/freebsd/contrib/llvm-project/lldb/source/Plugins/Platform/QemuUser/
H A DPlatformQemuUser.cpp160 lldb::ProcessSP PlatformQemuUser::DebugProcess(ProcessLaunchInfo &launch_info, in DebugProcess() argument
187 if (!launch_info.GetArg0().empty()) { in DebugProcess()
189 args.AppendArgument(launch_info.GetArg0()); in DebugProcess()
193 args.AppendArgument(launch_info.GetExecutableFile().GetPath()); in DebugProcess()
194 for (size_t i = 1; i < launch_info.GetArguments().size(); ++i) in DebugProcess()
195 args.AppendArgument(launch_info.GetArguments()[i].ref()); in DebugProcess()
197 LLDB_LOG(log, "{0} -> {1}", get_arg_range(launch_info.GetArguments()), in DebugProcess()
200 launch_info.SetArguments(args, true); in DebugProcess()
207 launch_info.GetEnvironment() = ComputeLaunchEnvironment( in DebugProcess()
208 std::move(launch_info in DebugProcess()
[all...]
/freebsd/contrib/llvm-project/lldb/source/Host/common/
H A DHost.cpp442 ProcessLaunchInfo launch_info; in RunShellCommand() local
443 launch_info.SetArchitecture(HostInfo::GetArchitecture()); in RunShellCommand()
450 launch_info.SetShell(shell); in RunShellCommand()
451 launch_info.GetArguments().AppendArguments(args); in RunShellCommand()
454 launch_info.ConvertArgumentsForLaunchingInShell( in RunShellCommand()
459 launch_info.SetArguments(args, first_arg_is_executable); in RunShellCommand()
462 launch_info.GetEnvironment() = Host::GetEnvironment(); in RunShellCommand()
465 launch_info.SetWorkingDirectory(working_dir); in RunShellCommand()
484 launch_info.AppendSuppressFileAction(STDIN_FILENO, true, false); in RunShellCommand()
486 launch_info.AppendOpenFileAction(STDOUT_FILENO, output_file_spec, false, in RunShellCommand()
[all …]
H A DMonitoringProcessLauncher.cpp26 MonitoringProcessLauncher::LaunchProcess(const ProcessLaunchInfo &launch_info, in LaunchProcess() argument
28 ProcessLaunchInfo resolved_info(launch_info); in LaunchProcess()
56 assert(launch_info.GetMonitorProcessCallback()); in LaunchProcess()
58 process.StartMonitoring(launch_info.GetMonitorProcessCallback()); in LaunchProcess()
/freebsd/contrib/llvm-project/lldb/source/Plugins/Platform/gdb-server/
H A DPlatformRemoteGDBServer.cpp324 Status PlatformRemoteGDBServer::LaunchProcess(ProcessLaunchInfo &launch_info) { in LaunchProcess() argument
332 auto num_file_actions = launch_info.GetNumFileActions(); in LaunchProcess()
334 const auto file_action = launch_info.GetFileActionAtIndex(i); in LaunchProcess()
351 launch_info.GetFlags().Test(eLaunchFlagDisableASLR)); in LaunchProcess()
353 launch_info.GetFlags().Test(eLaunchFlagDetachOnError)); in LaunchProcess()
355 FileSpec working_dir = launch_info.GetWorkingDirectory(); in LaunchProcess()
361 m_gdb_client_up->SendEnvironment(launch_info.GetEnvironment()); in LaunchProcess()
363 ArchSpec arch_spec = launch_info.GetArchitecture(); in LaunchProcess()
378 Args args = launch_info.GetArguments(); in LaunchProcess()
379 if (FileSpec exe_file = launch_info.GetExecutableFile()) in LaunchProcess()
[all …]
H A DPlatformRemoteGDBServer.h56 Status LaunchProcess(ProcessLaunchInfo &launch_info) override;
60 lldb::ProcessSP DebugProcess(ProcessLaunchInfo &launch_info,
/freebsd/contrib/llvm-project/lldb/source/Plugins/Process/gdb-remote/
H A DGDBRemoteCommunication.cpp883 const char *url, Platform *platform, ProcessLaunchInfo &launch_info, in StartDebugserverProcess() argument
894 FileSpec &debugserver_file_spec = launch_info.GetExecutableFile(); in StartDebugserverProcess()
950 Args &debugserver_args = launch_info.GetArguments(); in StartDebugserverProcess()
971 launch_info.AppendDuplicateFileAction(pass_comm_fd, pass_comm_fd); in StartDebugserverProcess()
977 if (launch_info.GetLaunchInSeparateProcessGroup()) { in StartDebugserverProcess()
1024 launch_info.AppendCloseFileAction(socket_pipe.GetReadFileDescriptor()); in StartDebugserverProcess()
1112 launch_info.GetEnvironment() = host_env; in StartDebugserverProcess()
1115 launch_info.AppendCloseFileAction(STDIN_FILENO); in StartDebugserverProcess()
1116 launch_info.AppendCloseFileAction(STDOUT_FILENO); in StartDebugserverProcess()
1117 launch_info.AppendCloseFileAction(STDERR_FILENO); in StartDebugserverProcess()
[all …]
/freebsd/contrib/llvm-project/lldb/source/Target/
H A DPlatform.cpp930 Status Platform::LaunchProcess(ProcessLaunchInfo &launch_info) { in LaunchProcess() argument
939 launch_info.GetFlags().Set(eLaunchFlagLaunchInTTY); in LaunchProcess()
941 if (launch_info.GetFlags().Test(eLaunchFlagLaunchInShell)) { in LaunchProcess()
942 const bool will_debug = launch_info.GetFlags().Test(eLaunchFlagDebug); in LaunchProcess()
944 uint32_t num_resumes = GetResumeCountForLaunchInfo(launch_info); in LaunchProcess()
946 const FileSpec &shell = launch_info.GetShell(); in LaunchProcess()
954 if (!launch_info.ConvertArgumentsForLaunchingInShell( in LaunchProcess()
957 } else if (launch_info.GetFlags().Test(eLaunchFlagShellExpandArguments)) { in LaunchProcess()
958 error = ShellExpandArguments(launch_info); in LaunchProcess()
969 __FUNCTION__, launch_info.GetResumeCount()); in LaunchProcess()
[all …]
H A DTarget.cpp3056 Status Target::Install(ProcessLaunchInfo *launch_info) { in Install() argument
3089 if (launch_info) in Install()
3090 launch_info->SetExecutableFile(remote_file, false); in Install()
3198 Status Target::Launch(ProcessLaunchInfo &launch_info, Stream *stream) { in Launch() argument
3204 launch_info.GetExecutableFile().GetPath().c_str()); in Launch()
3225 launch_info.GetFlags().Set(eLaunchFlagDebug); in Launch()
3227 SaveScriptedLaunchInfo(launch_info); in Launch()
3238 FinalizeFileActions(launch_info); in Launch()
3241 if (launch_info.GetFlags().Test(eLaunchFlagLaunchInTTY)) { in Launch()
3248 if (!launch_info.GetArchitecture().IsValid()) in Launch()
[all …]
H A DRemoteAwarePlatform.cpp265 Status RemoteAwarePlatform::LaunchProcess(ProcessLaunchInfo &launch_info) { in LaunchProcess() argument
267 return m_remote_platform_sp->LaunchProcess(launch_info); in LaunchProcess()
268 return Platform::LaunchProcess(launch_info); in LaunchProcess()
/freebsd/contrib/llvm-project/lldb/source/API/
H A DSBTarget.cpp278 SBLaunchInfo launch_info = GetLaunchInfo(); in LaunchSimple() local
281 launch_info.SetExecutableFile(exe_module->GetPlatformFileSpec(), in LaunchSimple()
284 launch_info.SetArguments(argv, /*append*/ true); in LaunchSimple()
286 launch_info.SetEnvironmentEntries(envp, /*append*/ false); in LaunchSimple()
288 launch_info.SetWorkingDirectory(working_directory); in LaunchSimple()
291 return Launch(launch_info, error); in LaunchSimple()
357 ProcessLaunchInfo launch_info(FileSpec(stdin_path), FileSpec(stdout_path), in Launch() local
363 launch_info.SetExecutableFile(exe_module->GetPlatformFileSpec(), true); in Launch()
365 launch_info.GetArguments().AppendArguments(argv); in Launch()
368 launch_info.GetArguments().AppendArguments( in Launch()
[all …]
H A DSBPlatform.cpp570 SBError SBPlatform::Launch(SBLaunchInfo &launch_info) { in Launch()
571 LLDB_INSTRUMENT_VA(this, launch_info); in Launch()
573 ProcessLaunchInfo info = launch_info.ref(); in Launch()
575 launch_info.set_ref(info); in Launch()
567 Launch(SBLaunchInfo & launch_info) Launch() argument
/freebsd/contrib/llvm-project/lldb/source/Plugins/Platform/POSIX/
H A DPlatformPOSIX.cpp418 lldb::ProcessSP PlatformPOSIX::DebugProcess(ProcessLaunchInfo &launch_info, in DebugProcess() argument
428 process_sp = m_remote_platform_sp->DebugProcess(launch_info, debugger, in DebugProcess()
441 launch_info.GetFlags().Set(eLaunchFlagDebug); in DebugProcess()
446 launch_info.SetLaunchInSeparateProcessGroup(true); in DebugProcess()
450 process_sp = target.CreateProcess(launch_info.GetListener(), "gdb-remote", in DebugProcess()
461 process_sp->HijackProcessEvents(launch_info.GetHijackListener()); in DebugProcess()
462 process_sp->SetShadowListener(launch_info.GetShadowListener()); in DebugProcess()
470 while ((file_action = launch_info.GetFileActionAtIndex(i++)) != nullptr) { in DebugProcess()
478 error = process_sp->Launch(launch_info); in DebugProcess()
482 int pty_fd = launch_info.GetPTY().ReleasePrimaryFileDescriptor(); in DebugProcess()
/freebsd/contrib/llvm-project/lldb/source/Core/
H A DIOHandlerCursesGUI.cpp3411 void GetExecutableSettings(ProcessLaunchInfo &launch_info) { in GetExecutableSettings() argument
3417 launch_info.GetArguments().AppendArgument(target_settings_argv0); in GetExecutableSettings()
3418 launch_info.SetExecutableFile(executable_module->GetPlatformFileSpec(), in GetExecutableSettings()
3423 launch_info.SetExecutableFile(executable_module->GetPlatformFileSpec(), in GetExecutableSettings()
3427 void GetArguments(ProcessLaunchInfo &launch_info) { in GetArguments() argument
3430 launch_info.GetArguments().AppendArguments(arguments); in GetArguments()
3433 void GetEnvironment(ProcessLaunchInfo &launch_info) { in GetEnvironment() argument
3438 launch_info.GetEnvironment().insert(target_environment.begin(), in GetEnvironment()
3440 launch_info.GetEnvironment().insert(inherited_environment.begin(), in GetEnvironment()
3444 void GetWorkingDirectory(ProcessLaunchInfo &launch_info) { in GetWorkingDirectory() argument
[all …]
/freebsd/contrib/llvm-project/lldb/source/Plugins/Platform/NetBSD/
H A DPlatformNetBSD.cpp146 PlatformNetBSD::GetResumeCountForLaunchInfo(ProcessLaunchInfo &launch_info) { in GetResumeCountForLaunchInfo() argument
150 if (launch_info.GetFlags().Test(eLaunchFlagDebug)) { in GetResumeCountForLaunchInfo()
156 const FileSpec &shell = launch_info.GetShell(); in GetResumeCountForLaunchInfo()
/freebsd/contrib/llvm-project/lldb/include/lldb/Host/
H A DHost.h169 static Status LaunchProcess(ProcessLaunchInfo &launch_info);
176 static Status ShellExpandArguments(ProcessLaunchInfo &launch_info);
H A DProcessLauncher.h21 virtual HostProcess LaunchProcess(const ProcessLaunchInfo &launch_info,
H A DMonitoringProcessLauncher.h25 HostProcess LaunchProcess(const ProcessLaunchInfo &launch_info,
/freebsd/contrib/llvm-project/lldb/include/lldb/Host/posix/
H A DProcessLauncherPosixFork.h18 HostProcess LaunchProcess(const ProcessLaunchInfo &launch_info,
/freebsd/contrib/llvm-project/lldb/include/lldb/Interpreter/
H A DScriptedPlatformInterface.h
/freebsd/contrib/llvm-project/lldb/source/Plugins/ScriptInterpreter/Python/
H A DScriptedPlatformPythonInterface.h
/freebsd/contrib/llvm-project/lldb/source/Host/posix/
H A DProcessLauncherPosixFork.cpp258 ProcessLauncherPosixFork::LaunchProcess(const ProcessLaunchInfo &launch_info, in LaunchProcess() argument
267 const ForkLaunchInfo fork_launch_info(launch_info); in LaunchProcess()

123