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

1 //===-- NativeProcessNetBSD.cpp -------------------------------------------===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
20 // System includes - They have to be included after framework includes because
22 // clang-format off
30 // clang-format on
43 if (status == -1) {
48 if (fcntl(fd, F_SETFL, status | flags) == -1) {
75 ::pid_t wpid = llvm::sys::RetryAfterSignal(-1, ::waitpid, pid, &wstatus, 0);
100 status = process_up->SetupTrace();
104 for (const auto &thread : process_up->m_threads)
106 process_up->SetState(StateType::eStateStopped, false);
125 pid, -1, native_delegate, Info.GetArchitecture(), m_mainloop));
127 Status status = process_up->Attach();
149 if (m_terminal_fd != -1) {
226 if (t->GetID() == static_cast<lldb::tid_t>(info.psi_lwpid)) {
230 static_cast<NativeThreadNetBSD *>(t.get())->SetStoppedWithNoReason();
240 thread->SetStoppedByBreakpoint();
247 thread->SetStoppedByTrace();
276 thread->SetStoppedByVForkDone();
331 thread->GetRegisterContext());
341 thread->SetStoppedByWatchpoint(wp_index);
347 thread->SetStoppedByTrace();
353 // Either user-generated SIGTRAP or an unknown event that would
393 if (ret == -1)
414 if (ret == -1)
444 resume_actions.GetActionForThread(thread->GetID(), true);
446 if (action->signal != LLDB_INVALID_SIGNAL_NUMBER) {
448 if (action->signal != signal) {
454 signal = action->signal;
455 signaled_lwp = thread->GetID();
501 // we need to explicit issue suspend requests, so it is simpler to map it
515 action->state, action->signal, GetID(), thread.GetID());
517 switch (action->state) {
526 if (action->signal != LLDB_INVALID_SIGNAL_NUMBER)
537 __FUNCTION__, StateAsCString(action->state), GetID(), thread.GetID());
545 if (siginfo->psi_siginfo.si_signo != LLDB_INVALID_SIGNAL_NUMBER) {
550 signal = siginfo->psi_siginfo.si_signo;
598 // Nothing to do - the process is already dead.
641 MemoryRegionInfo &proc_entry_info = it->first;
652 proc_entry_info.GetRange().GetRangeBase() - load_addr);
680 // If our cache is empty, pull the latest. There should always be at least
802 ::pid_t wait_pid = llvm::sys::RetryAfterSignal(-1, waitpid, GetID(), &status,
808 if (wait_pid == -1) {
834 if (thread->GetID() == thread_id) {
869 if ((*it)->GetID() == thread_id) {
886 if ((wstatus = llvm::sys::RetryAfterSignal(-1, waitpid, m_pid, nullptr,
900 SetCurrentThreadID(m_threads.front()->GetID());
926 io.piod_len = size - bytes_read;
955 io.piod_len = size - bytes_written;
978 io.piod_addr = static_cast<void *>(buf.get()->getBufferStart());
1046 llvm::sys::RetryAfterSignal(-1, ::waitpid, child_pid, &status, 0);
1076 child_process->m_software_breakpoints = m_software_breakpoints;
1080 child_process->SetupTrace();
1081 for (const auto &thread : child_process->m_threads)
1083 child_process->SetState(StateType::eStateStopped, false);
1092 child_process->Detach();