Home
last modified time | relevance | path

Searched refs:attach_pid (Results 1 – 13 of 13) sorted by relevance

/llvm-project-15.0.7/lldb/test/API/tools/lldb-server/
H A DTestPtyServer.py22 def get_debug_monitor_command_line_args(self, attach_pid=None): argument
24 if attach_pid:
25 commandline_args += ["--attach=%d" % attach_pid]
34 def connect_to_debug_monitor(self, attach_pid=None): argument
36 server = self.launch_debug_monitor(attach_pid=attach_pid)
H A DTestAppleSimulatorOSType.py98 server = self.connect_to_debug_monitor(attach_pid=pid)
/llvm-project-15.0.7/lldb/packages/Python/lldbsuite/test/tools/lldb-server/
H A Dgdbremote_testcase.py329 def get_debug_monitor_command_line_args(self, attach_pid=None): argument
331 if attach_pid:
332 commandline_args += ["--attach=%d" % attach_pid]
348 def launch_debug_monitor(self, attach_pid=None, logfile=None): argument
362 attach_pid=attach_pid)
377 def connect_to_debug_monitor(self, attach_pid=None): argument
380 server = self.launch_debug_monitor(attach_pid=attach_pid)
395 server = self.launch_debug_monitor(attach_pid=attach_pid)
481 attach_pid = None
494 attach_pid = inferior.pid
[all …]
/llvm-project-15.0.7/lldb/examples/python/
H A Dprocess_events.py242 elif options.attach_pid != -1:
244 attach_info = lldb.SBAttachInfo(options.attach_pid)
294 if options.attach_pid != -1:
295 print('Attaching to process %i...' % (options.attach_pid))
/llvm-project-15.0.7/lldb/tools/debugserver/source/
H A Ddebugserver.cpp364 nub_process_t attach_pid, in RNBRunLoopLaunchAttaching() argument
369 attach_pid); in RNBRunLoopLaunchAttaching()
371 pid = DNBProcessAttach(attach_pid, NULL, ctx.GetIgnoredExceptions(), err_str, in RNBRunLoopLaunchAttaching()
959 int attach_pid = INVALID_NUB_PROCESS; in main() local
1049 attach_pid = static_cast<int>(strtoul(optarg, &end, 0)); in main()
1556 } else if (attach_pid != INVALID_NUB_PROCESS) { in main()
1558 RNBLogSTDOUT("Attaching to process %i...\n", attach_pid); in main()
1560 mode = RNBRunLoopLaunchAttaching(remote, attach_pid, attached_pid); in main()
1563 RNBLogSTDERR("error: failed to attach process %i: %s\n", attach_pid, in main()
1618 attach_pid); in main()
H A DDNB.cpp441 nub_process_t DNBProcessAttach(nub_process_t attach_pid, in DNBProcessAttach() argument
451 static_cast<int>(attach_pid)}; in DNBProcessAttach()
472 snprintf(pidstr, sizeof(pidstr), "--attach=%d", attach_pid); in DNBProcessAttach()
491 attach_pid); in DNBProcessAttach()
493 processSP->AttachForDebug(attach_pid, ignored_exceptions, err_str, in DNBProcessAttach()
H A DRNBRemote.cpp3783 nub_process_t attach_pid = in HandlePacket_v() local
3799 attach_pid = DNBProcessAttachWait( in HandlePacket_v()
3814 attach_pid = DNBProcessAttachWait( in HandlePacket_v()
3827 attach_pid = DNBProcessAttachByName(attach_name.c_str(), NULL, in HandlePacket_v()
3842 attach_pid = DNBProcessAttach(pid_attaching_to, &attach_timeout_abstime, in HandlePacket_v()
3850 if (attach_pid == INVALID_NUB_PROCESS_ARCH) { in HandlePacket_v()
3861 if (attach_pid != INVALID_NUB_PROCESS) { in HandlePacket_v()
3862 if (m_ctx.ProcessID() != attach_pid) in HandlePacket_v()
3863 m_ctx.SetProcessID(attach_pid); in HandlePacket_v()
3864 DNBLog("Successfully attached to pid %d", attach_pid); in HandlePacket_v()
/llvm-project-15.0.7/lldb/tools/driver/
H A DOptions.td30 def attach_pid: Separate<["--", "-"], "attach-pid">,
35 Alias<attach_pid>,
/llvm-project-15.0.7/lldb/source/Target/
H A DProcess.cpp2767 lldb::pid_t attach_pid = attach_info.GetProcessID(); in Attach() local
2769 if (attach_pid == LLDB_INVALID_PROCESS_ID) { in Attach()
2816 attach_pid = process_infos[0].GetProcessID(); in Attach()
2846 if (attach_pid != LLDB_INVALID_PROCESS_ID) { in Attach()
2847 error = WillAttachToProcessWithID(attach_pid); in Attach()
2855 error = DoAttachToProcessWithID(attach_pid, attach_info); in Attach()
/llvm-project-15.0.7/lldb/source/Plugins/Process/MacOSX-Kernel/
H A DProcessKDP.cpp368 ProcessKDP::DoAttachToProcessWithID(lldb::pid_t attach_pid, in DoAttachToProcessWithID() argument
/llvm-project-15.0.7/lldb/source/API/
H A DSBTarget.cpp441 lldb::pid_t attach_pid = attach_info.GetProcessID(); in Attach() local
443 if (platform_sp->GetProcessInfo(attach_pid, instance_info)) { in Attach()
447 "no process found with process ID %" PRIu64, attach_pid); in Attach()
/llvm-project-15.0.7/lldb/source/Plugins/Process/gdb-remote/
H A DProcessGDBRemote.cpp1113 lldb::pid_t attach_pid, const ProcessAttachInfo &attach_info) { in DoAttachToProcessWithID() argument
1121 if (attach_pid != LLDB_INVALID_PROCESS_ID) { in DoAttachToProcessWithID()
1128 ::snprintf(packet, sizeof(packet), "vAttach;%" PRIx64, attach_pid); in DoAttachToProcessWithID()
1129 SetID(attach_pid); in DoAttachToProcessWithID()
/llvm-project-15.0.7/lldb/tools/debugserver/source/MacOSX/
H A DMachProcess.mm3082 nub_process_t attach_pid;
3083 got_it = SBSProcessIDForDisplayIdentifier(bundleIDCFStr, &attach_pid);
3085 return attach_pid;