Home
last modified time | relevance | path

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

12345

/external/llvm-project/lldb/source/Host/windows/
DProcessLauncherWindows.cpp64 ProcessLauncherWindows::LaunchProcess(const ProcessLaunchInfo &launch_info, in LaunchProcess() argument
73 HANDLE stdin_handle = GetStdioHandle(launch_info, STDIN_FILENO); in LaunchProcess()
74 HANDLE stdout_handle = GetStdioHandle(launch_info, STDOUT_FILENO); in LaunchProcess()
75 HANDLE stderr_handle = GetStdioHandle(launch_info, STDERR_FILENO); in LaunchProcess()
95 if (launch_info.GetFlags().Test(eLaunchFlagDebug)) in LaunchProcess()
98 if (launch_info.GetFlags().Test(eLaunchFlagDisableSTDIO)) in LaunchProcess()
102 ::CreateEnvironmentBuffer(launch_info.GetEnvironment(), environment); in LaunchProcess()
105 executable = launch_info.GetExecutableFile().GetPath(); in LaunchProcess()
107 GetFlattenedWindowsCommandString(launch_info.GetArguments(), wcommandLine); in LaunchProcess()
111 llvm::ConvertUTF8toWide(launch_info.GetWorkingDirectory().GetCString(), in LaunchProcess()
[all …]
DHost.cpp203 Status Host::ShellExpandArguments(ProcessLaunchInfo &launch_info) { in ShellExpandArguments() argument
205 if (launch_info.GetFlags().Test(eLaunchFlagShellExpandArguments)) { in ShellExpandArguments()
219 launch_info.GetArguments().GetQuotedCommandString(quoted_cmd_string); in ShellExpandArguments()
230 RunShellCommand(command.c_str(), launch_info.GetWorkingDirectory(), in ShellExpandArguments()
266 launch_info.GetArguments().Clear(); in ShellExpandArguments()
276 launch_info.GetArguments().AppendArgument(str_sp->GetValue()); in ShellExpandArguments()
/external/llvm-project/lldb/test/API/python_api/sbenvironment/
DTestSBEnvironment.py44 launch_info = target.GetLaunchInfo()
45 env = launch_info.GetEnvironment()
52 self.assertEqual(launch_info.GetEnvironment().GetNumValues(), env_count)
54 launch_info.SetEnvironment(env, append=True)
55 self.assertEqual(launch_info.GetEnvironment().GetNumValues(), env_count + 1)
58 launch_info.SetEnvironment(env, append=True)
59 self.assertEqual(launch_info.GetEnvironment().GetNumValues(), env_count + 1)
60 self.assertEqual(launch_info.GetEnvironment().Get("FOO"), "baz")
66 launch_info.SetEnvironment(env, append=False)
67 self.assertEqualEntries(launch_info.GetEnvironment(), ["BAR=foo", "X=y"])
/external/llvm-project/lldb/test/API/functionalities/breakpoint/address_breakpoints/
DTestAddressBreakpoints.py56 launch_info = lldb.SBLaunchInfo(None)
57 flags = launch_info.GetLaunchFlags()
60 launch_info.SetLaunchFlags(flags)
64 process = target.Launch(launch_info, error)
80 launch_info.Clear()
81 launch_info.SetLaunchFlags(flags)
83 process = target.Launch(launch_info, error)
/external/llvm-project/lldb/source/Host/common/
DHost.cpp507 ProcessLaunchInfo launch_info; in RunShellCommand() local
508 launch_info.SetArchitecture(HostInfo::GetArchitecture()); in RunShellCommand()
515 launch_info.SetShell(shell); in RunShellCommand()
516 launch_info.GetArguments().AppendArguments(args); in RunShellCommand()
519 launch_info.ConvertArgumentsForLaunchingInShell( in RunShellCommand()
524 launch_info.SetArguments(args, first_arg_is_executable); in RunShellCommand()
527 launch_info.GetEnvironment() = Host::GetEnvironment(); in RunShellCommand()
530 launch_info.SetWorkingDirectory(working_dir); in RunShellCommand()
549 launch_info.AppendSuppressFileAction(STDIN_FILENO, true, false); in RunShellCommand()
551 launch_info.AppendOpenFileAction(STDOUT_FILENO, output_file_spec, false, in RunShellCommand()
[all …]
DMonitoringProcessLauncher.cpp25 MonitoringProcessLauncher::LaunchProcess(const ProcessLaunchInfo &launch_info, in LaunchProcess() argument
27 ProcessLaunchInfo resolved_info(launch_info); in LaunchProcess()
55 assert(launch_info.GetMonitorProcessCallback()); in LaunchProcess()
57 process.StartMonitoring(launch_info.GetMonitorProcessCallback(), in LaunchProcess()
58 launch_info.GetMonitorSignals()); in LaunchProcess()
/external/llvm-project/lldb/test/API/commands/expression/weak_symbols/
DTestWeakSymbols.py49 launch_info = lldb.SBLaunchInfo(None)
50 launch_info.SetWorkingDirectory(self.getBuildDir())
51 launch_info.SetLaunchFlags(lldb.eLaunchFlagInheritTCCFromParent)
56 launch_info = launch_info,
/external/llvm-project/lldb/source/Plugins/Platform/Windows/
DPlatformWindows.cpp200 ProcessSP PlatformWindows::DebugProcess(ProcessLaunchInfo &launch_info, in DebugProcess() argument
224 return m_remote_platform_sp->DebugProcess(launch_info, debugger, target, in DebugProcess()
230 if (launch_info.GetProcessID() != LLDB_INVALID_PROCESS_ID) { in DebugProcess()
232 ProcessAttachInfo attach_info(launch_info); in DebugProcess()
236 launch_info.GetListener(), launch_info.GetProcessPluginName(), nullptr, in DebugProcess()
240 launch_info.GetFlags().Set(eLaunchFlagDebug); in DebugProcess()
242 error = process_sp->Launch(launch_info); in DebugProcess()
/external/llvm-project/lldb/source/Host/macosx/objcxx/
DHost.mm181 ProcessLaunchInfo &launch_info) {
208 const ArchSpec &arch_spec = launch_info.GetArchitecture();
219 FileSpec working_dir{launch_info.GetWorkingDirectory()};
228 if (launch_info.GetFlags().Test(eLaunchFlagDisableASLR))
232 // the host to what is supplied in the launch_info. Any items that aren't in
238 for (const auto &KV : launch_info.GetEnvironment()) {
246 const char **argv = launch_info.GetArguments().GetConstArgumentVector();
258 if (launch_info.GetFlags().Test(lldb::eLaunchFlagCloseTTYOnExit))
303 launch_info.SetProcessID(pid);
721 static Status getXPCAuthorization(ProcessLaunchInfo &launch_info) {
[all …]
/external/llvm-project/lldb/examples/python/
Dprocess_events.py233 launch_info = None
237 launch_info = lldb.SBLaunchInfo(args)
239 launch_info.SetEnvironmentEntries(options.env_vars, True)
241 launch_info.SetWorkingDirectory(options.working_dir)
276 if launch_info and options.breakpoints:
286 if launch_info:
292 process = target.Launch(launch_info, error)
329 if launch_info:
411 if launch_info:
/external/llvm-project/lldb/test/API/functionalities/tty/
DTestTerminal.py40 launch_info = lldb.SBLaunchInfo(["-lAF", "/tmp/"])
41 launch_info.SetLaunchFlags(
44 process = target.Launch(launch_info, error)
/external/llvm-project/lldb/test/API/functionalities/signal/
DTestSendSignal.py47 launch_info = target.GetLaunchInfo()
48 launch_info.SetWorkingDirectory(self.get_process_working_directory())
51 launch_info.SetListener(process_listener)
53 process = target.Launch(launch_info, error)
/external/llvm-project/lldb/test/API/python_api/process/io/
DTestProcessIO.py138 self.launch_info = self.target.GetLaunchInfo()
139 self.launch_info.SetWorkingDirectory(
167 self.launch_info.AddOpenFileAction(0, self.input_file, True, False)
171 self.launch_info.AddOpenFileAction(1, self.output_file, False, True)
175 self.launch_info.AddOpenFileAction(2, self.error_file, False, True)
190 self.process = self.target.Launch(self.launch_info, error)
/external/llvm-project/lldb/test/API/lang/objc/exceptions/
DTestObjCExceptions.py24 launch_info = lldb.SBLaunchInfo(["a.out", "0"])
25 launch_info.SetLaunchFlags(lldb.eLaunchFlagInheritTCCFromParent)
26 lldbutil.run_to_name_breakpoint(self, "objc_exception_throw", launch_info=launch_info)
48 …oint(self, "// Set break point at this line.", lldb.SBFileSpec("main.mm"), launch_info=launch_info)
/external/llvm-project/lldb/source/Plugins/Platform/MacOSX/
DPlatformAppleSimulator.cpp56 lldb_private::ProcessLaunchInfo &launch_info) { in LaunchProcess() argument
68 auto spawned = device.Spawn(launch_info); in LaunchProcess()
71 launch_info.SetProcessID(spawned.GetPID()); in LaunchProcess()
181 ProcessLaunchInfo &launch_info, Debugger &debugger, in DebugProcess() argument
188 launch_info.GetFlags().Set(eLaunchFlagDebug); in DebugProcess()
192 launch_info.SetLaunchInSeparateProcessGroup(true); in DebugProcess()
194 error = LaunchProcess(launch_info); in DebugProcess()
196 if (launch_info.GetProcessID() != LLDB_INVALID_PROCESS_ID) { in DebugProcess()
197 ProcessAttachInfo attach_info(launch_info); in DebugProcess()
200 launch_info.SetHijackListener(attach_info.GetHijackListener()); in DebugProcess()
[all …]
/external/llvm-project/lldb/source/Plugins/Process/Windows/Common/
DProcessDebugger.cpp105 Status ProcessDebugger::LaunchProcess(ProcessLaunchInfo &launch_info, in LaunchProcess() argument
114 FileSpec working_dir = launch_info.GetWorkingDirectory(); in LaunchProcess()
125 if (!launch_info.GetFlags().Test(eLaunchFlagDebug)) { in LaunchProcess()
129 launch_info.GetExecutableFile().GetPath().c_str()); in LaunchProcess()
137 bool stop_at_entry = launch_info.GetFlags().Test(eLaunchFlagStopAtEntry); in LaunchProcess()
143 result = debugger->DebugLaunch(launch_info); in LaunchProcess()
146 launch_info.GetExecutableFile().GetPath(), result); in LaunchProcess()
154 launch_info.GetExecutableFile().GetPath(), error); in LaunchProcess()
159 launch_info.GetExecutableFile().GetPath()); in LaunchProcess()
166 launch_info.SetProcessID(process.GetProcessId()); in LaunchProcess()
DDebuggerThread.h32 Status DebugLaunch(const ProcessLaunchInfo &launch_info);
96 DebuggerThreadLaunchRoutine(const ProcessLaunchInfo &launch_info);
100 const ProcessAttachInfo &launch_info);
DDebuggerThread.cpp42 const ProcessLaunchInfo &launch_info) in DebugLaunchContext()
43 : m_thread(thread), m_launch_info(launch_info) {} in DebugLaunchContext()
66 Status DebuggerThread::DebugLaunch(const ProcessLaunchInfo &launch_info) { in DebugLaunch() argument
68 LLDB_LOG(log, "launching '{0}'", launch_info.GetExecutableFile().GetPath()); in DebugLaunch()
71 DebugLaunchContext *context = new DebugLaunchContext(this, launch_info); in DebugLaunch()
120 const ProcessLaunchInfo &launch_info) { in DebuggerThreadLaunchRoutine() argument
127 launch_info.GetExecutableFile().GetPath()); in DebuggerThreadLaunchRoutine()
131 HostProcess process(launcher.LaunchProcess(launch_info, error)); in DebuggerThreadLaunchRoutine()
/external/llvm-project/lldb/source/Plugins/Platform/MacOSX/objcxx/
DPlatformiOSSimulatorCoreSimulatorSupport.mm384 static Status HandleFileAction(ProcessLaunchInfo &launch_info,
388 const FileAction *file_action = launch_info.GetFileActionForFD(fd);
407 const int master_fd = launch_info.GetPTY().GetPrimaryFileDescriptor();
410 FileSpec secondary_spec(launch_info.GetPTY().GetSecondaryName());
413 launch_info.GetPTY().GetSecondaryFileDescriptor();
415 if (llvm::Error Err = launch_info.GetPTY().OpenSecondary(O_RDWR))
418 secondary_fd = launch_info.GetPTY().GetSecondaryFileDescriptor();
452 CoreSimulatorSupport::Device::Spawn(ProcessLaunchInfo &launch_info) {
472 if (launch_info.GetFlags().Test(lldb::eLaunchFlagDebug))
475 if (launch_info.GetArguments().GetArgumentCount()) {
[all …]
/external/llvm-project/lldb/include/lldb/Host/windows/
DProcessLauncherWindows.h21 HostProcess LaunchProcess(const ProcessLaunchInfo &launch_info,
25 HANDLE GetStdioHandle(const ProcessLaunchInfo &launch_info, int fd);
/external/llvm-project/lldb/source/Plugins/Platform/gdb-server/
DPlatformRemoteGDBServer.cpp385 Status PlatformRemoteGDBServer::LaunchProcess(ProcessLaunchInfo &launch_info) { in LaunchProcess() argument
391 auto num_file_actions = launch_info.GetNumFileActions(); in LaunchProcess()
393 const auto file_action = launch_info.GetFileActionAtIndex(i); in LaunchProcess()
410 launch_info.GetFlags().Test(eLaunchFlagDisableASLR)); in LaunchProcess()
412 launch_info.GetFlags().Test(eLaunchFlagDetachOnError)); in LaunchProcess()
414 FileSpec working_dir = launch_info.GetWorkingDirectory(); in LaunchProcess()
420 m_gdb_client.SendEnvironment(launch_info.GetEnvironment()); in LaunchProcess()
422 ArchSpec arch_spec = launch_info.GetArchitecture(); in LaunchProcess()
436 arg_packet_err = m_gdb_client.SendArgumentsPacket(launch_info); in LaunchProcess()
444 launch_info.SetProcessID(pid); in LaunchProcess()
[all …]
/external/llvm-project/lldb/source/Plugins/Process/gdb-remote/
DGDBRemoteCommunication.cpp905 const char *url, Platform *platform, ProcessLaunchInfo &launch_info, in StartDebugserverProcess() argument
916 FileSpec &debugserver_file_spec = launch_info.GetExecutableFile(); in StartDebugserverProcess()
972 Args &debugserver_args = launch_info.GetArguments(); in StartDebugserverProcess()
993 launch_info.AppendDuplicateFileAction(pass_comm_fd, pass_comm_fd); in StartDebugserverProcess()
999 if (launch_info.GetLaunchInSeparateProcessGroup()) { in StartDebugserverProcess()
1046 launch_info.AppendCloseFileAction(socket_pipe.GetReadFileDescriptor()); in StartDebugserverProcess()
1132 launch_info.GetEnvironment() = host_env; in StartDebugserverProcess()
1135 launch_info.AppendCloseFileAction(STDIN_FILENO); in StartDebugserverProcess()
1136 launch_info.AppendCloseFileAction(STDOUT_FILENO); in StartDebugserverProcess()
1137 launch_info.AppendCloseFileAction(STDERR_FILENO); in StartDebugserverProcess()
[all …]
/external/llvm-project/lldb/test/API/functionalities/breakpoint/auto_continue/
DTestBreakpointAutoContinue.py49 launch_info = self.target.GetLaunchInfo()
50 launch_info.SetWorkingDirectory(self.get_process_working_directory())
52 process = self.target.Launch(launch_info, error)
/external/llvm-project/lldb/source/Target/
DPlatform.cpp1011 Status Platform::LaunchProcess(ProcessLaunchInfo &launch_info) { in LaunchProcess() argument
1020 launch_info.GetFlags().Set(eLaunchFlagLaunchInTTY); in LaunchProcess()
1022 if (launch_info.GetFlags().Test(eLaunchFlagLaunchInShell)) { in LaunchProcess()
1023 const bool will_debug = launch_info.GetFlags().Test(eLaunchFlagDebug); in LaunchProcess()
1025 uint32_t num_resumes = GetResumeCountForLaunchInfo(launch_info); in LaunchProcess()
1027 const FileSpec &shell = launch_info.GetShell(); in LaunchProcess()
1035 if (!launch_info.ConvertArgumentsForLaunchingInShell( in LaunchProcess()
1038 } else if (launch_info.GetFlags().Test(eLaunchFlagShellExpandArguments)) { in LaunchProcess()
1039 error = ShellExpandArguments(launch_info); in LaunchProcess()
1050 __FUNCTION__, launch_info.GetResumeCount()); in LaunchProcess()
[all …]
/external/llvm-project/lldb/test/API/commands/disassemble/basic/
DTestFrameDisassemble.py44 launch_info = target.GetLaunchInfo()
45 process = target.Launch(launch_info, error)

12345