Lines Matching +full:pull +full:- +full:requests

1 //===-- NativeProcessFreeBSD.cpp ------------------------------------------===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
11 // clang-format off
18 // clang-format on
38 if (status == -1) {
43 if (fcntl(fd, F_SETFL, status | flags) == -1) {
89 ::pid_t wpid = llvm::sys::RetryAfterSignal(-1, ::waitpid, pid, &wstatus, 0);
114 status = process_up->SetupTrace();
118 for (const auto &thread : process_up->m_threads)
120 process_up->SetState(StateType::eStateStopped, false);
139 pid, -1, native_delegate, Info.GetArchitecture(), m_mainloop));
141 Status status = process_up->Attach();
167 if (m_terminal_fd != -1) {
234 // threads. However, there is a non-negligible delay between acquiring
275 SetCurrentThreadID(m_threads.front()->GetID());
282 if (t->GetID() == static_cast<lldb::tid_t>(info.pl_lwpid))
284 static_cast<NativeThreadFreeBSD *>(t.get())->SetStoppedWithNoReason();
300 thread->SetStoppedByVForkDone();
323 thread->GetRegisterContext());
325 m_threads_stepping_with_breakpoint.find(thread->GetID());
327 thread_info->second == regctx.GetPC()) {
328 thread->SetStoppedByTrace();
329 Status brkpt_error = RemoveBreakpoint(thread_info->second);
332 thread_info->first, brkpt_error);
335 thread->SetStoppedByBreakpoint();
337 SetCurrentThreadID(thread->GetID());
347 thread->GetRegisterContext());
358 thread->SetStoppedByWatchpoint(wp_index);
359 SetCurrentThreadID(thread->GetID());
364 thread->SetStoppedByTrace();
365 SetCurrentThreadID(thread->GetID());
373 // Either user-generated SIGTRAP or an unknown event that would
417 if (ret == -1) {
469 // we need to explicit issue suspend requests, so it is simpler to map it
483 action->state, action->signal, GetID(), thread.GetID());
485 switch (action->state) {
494 if (action->signal != LLDB_INVALID_SIGNAL_NUMBER)
505 __FUNCTION__, StateAsCString(action->state), GetID(), thread.GetID());
510 if (action->signal != LLDB_INVALID_SIGNAL_NUMBER)
511 signal = action->signal;
569 // Nothing to do - the process is already dead.
607 MemoryRegionInfo &proc_entry_info = it->first;
618 proc_entry_info.GetRange().GetRangeBase() - load_addr);
646 // If our cache is empty, pull the latest. There should always be at least
666 ret = ::sysctl(mib, 4, buf->getBufferStart(), &len, nullptr, 0);
672 char *bp = buf->getBufferStart();
676 if (kv->kve_structsize == 0)
678 bp += kv->kve_structsize;
682 info.GetRange().SetRangeBase(kv->kve_start);
683 info.GetRange().SetRangeEnd(kv->kve_end);
686 if (kv->kve_protection & VM_PROT_READ)
691 if (kv->kve_protection & VM_PROT_WRITE)
696 if (kv->kve_protection & VM_PROT_EXECUTE)
701 if (kv->kve_path[0])
702 info.SetName(kv->kve_path);
785 llvm::sys::RetryAfterSignal(-1, waitpid, GetID(), &status, WNOHANG);
790 if (wait_pid == -1) {
816 if (thread->GetID() == thread_id) {
851 if ((*it)->GetID() == thread_id) {
858 SetCurrentThreadID(m_threads.front()->GetID());
871 if ((wstatus = llvm::sys::RetryAfterSignal(-1, waitpid, m_pid, nullptr, 0)) <
885 SetCurrentThreadID(m_threads.front()->GetID());
911 io.piod_len = size - bytes_read;
940 io.piod_len = size - bytes_written;
953 if (::sysctl(mib, 4, buf->getBufferStart(), &auxv_size, nullptr, 0) != 0)
1008 llvm::sys::RetryAfterSignal(-1, ::waitpid, child_pid, &status, 0);
1037 child_process->m_software_breakpoints = m_software_breakpoints;
1041 child_process->SetupTrace();
1042 for (const auto &thread : child_process->m_threads)
1044 child_process->SetState(StateType::eStateStopped, false);
1053 child_process->Detach();