/system/unwinding/libunwindstack/ |
D | RegsX86_64.cpp | 111 void RegsX86_64::SetFromUcontext(x86_64_ucontext_t* ucontext) { in SetFromUcontext() argument 113 memcpy(®s_[X86_64_REG_R8], &ucontext->uc_mcontext.r8, 8 * sizeof(uint64_t)); in SetFromUcontext() 116 regs_[X86_64_REG_RDI] = ucontext->uc_mcontext.rdi; in SetFromUcontext() 117 regs_[X86_64_REG_RSI] = ucontext->uc_mcontext.rsi; in SetFromUcontext() 118 regs_[X86_64_REG_RBP] = ucontext->uc_mcontext.rbp; in SetFromUcontext() 119 regs_[X86_64_REG_RBX] = ucontext->uc_mcontext.rbx; in SetFromUcontext() 120 regs_[X86_64_REG_RDX] = ucontext->uc_mcontext.rdx; in SetFromUcontext() 121 regs_[X86_64_REG_RAX] = ucontext->uc_mcontext.rax; in SetFromUcontext() 122 regs_[X86_64_REG_RCX] = ucontext->uc_mcontext.rcx; in SetFromUcontext() 123 regs_[X86_64_REG_RSP] = ucontext->uc_mcontext.rsp; in SetFromUcontext() [all …]
|
D | RegsX86.cpp | 94 void RegsX86::SetFromUcontext(x86_ucontext_t* ucontext) { in SetFromUcontext() argument 96 regs_[X86_REG_EDI] = ucontext->uc_mcontext.edi; in SetFromUcontext() 97 regs_[X86_REG_ESI] = ucontext->uc_mcontext.esi; in SetFromUcontext() 98 regs_[X86_REG_EBP] = ucontext->uc_mcontext.ebp; in SetFromUcontext() 99 regs_[X86_REG_ESP] = ucontext->uc_mcontext.esp; in SetFromUcontext() 100 regs_[X86_REG_EBX] = ucontext->uc_mcontext.ebx; in SetFromUcontext() 101 regs_[X86_REG_EDX] = ucontext->uc_mcontext.edx; in SetFromUcontext() 102 regs_[X86_REG_ECX] = ucontext->uc_mcontext.ecx; in SetFromUcontext() 103 regs_[X86_REG_EAX] = ucontext->uc_mcontext.eax; in SetFromUcontext() 104 regs_[X86_REG_EIP] = ucontext->uc_mcontext.eip; in SetFromUcontext() [all …]
|
D | Regs.cpp | 123 Regs* Regs::CreateFromUcontext(ArchEnum arch, void* ucontext) { in CreateFromUcontext() argument 126 return RegsX86::CreateFromUcontext(ucontext); in CreateFromUcontext() 128 return RegsX86_64::CreateFromUcontext(ucontext); in CreateFromUcontext() 130 return RegsArm::CreateFromUcontext(ucontext); in CreateFromUcontext() 132 return RegsArm64::CreateFromUcontext(ucontext); in CreateFromUcontext() 134 return RegsRiscv64::CreateFromUcontext(ucontext); in CreateFromUcontext()
|
D | ThreadEntry.cpp | 108 ucontext_t* ucontext = reinterpret_cast<ucontext_t*>(sigcontext); in CopyUcontextFromSigcontext() local 110 memcpy(&ucontext_.uc_mcontext, &ucontext->uc_mcontext, sizeof(ucontext->uc_mcontext)); in CopyUcontextFromSigcontext()
|
D | RegsArm.cpp | 91 Regs* RegsArm::CreateFromUcontext(void* ucontext) { in CreateFromUcontext() argument 92 arm_ucontext_t* arm_ucontext = reinterpret_cast<arm_ucontext_t*>(ucontext); in CreateFromUcontext()
|
D | AndroidUnwinder.cpp | 135 bool AndroidUnwinder::Unwind(void* ucontext, AndroidUnwinderData& data) { in Unwind() argument 136 if (ucontext == nullptr) { in Unwind() 145 std::unique_ptr<Regs> regs(Regs::CreateFromUcontext(arch_, ucontext)); in Unwind()
|
D | RegsRiscv64.cpp | 150 Regs* RegsRiscv64::CreateFromUcontext(void* ucontext) { in CreateFromUcontext() argument 151 riscv64_ucontext_t* riscv64_ucontext = reinterpret_cast<riscv64_ucontext_t*>(ucontext); in CreateFromUcontext()
|
D | RegsArm64.cpp | 146 Regs* RegsArm64::CreateFromUcontext(void* ucontext) { in CreateFromUcontext() argument 147 arm64_ucontext_t* arm64_ucontext = reinterpret_cast<arm64_ucontext_t*>(ucontext); in CreateFromUcontext()
|
/system/core/debuggerd/handler/ |
D | debuggerd_fallback.cpp | 57 static void debuggerd_fallback_trace(int output_fd, ucontext_t* ucontext) { in debuggerd_fallback_trace() argument 71 unwindstack::Regs::CreateFromUcontext(unwindstack::Regs::CurrentArch(), ucontext)); in debuggerd_fallback_trace() 85 static void debuggerd_fallback_tombstone(int output_fd, int proto_fd, ucontext_t* ucontext, in debuggerd_fallback_tombstone() argument 93 siginfo, ucontext); in debuggerd_fallback_tombstone() 156 static void trace_handler(siginfo_t* info, ucontext_t* ucontext) { in trace_handler() argument 179 debuggerd_fallback_trace(fd, ucontext); in trace_handler() 209 debuggerd_fallback_trace(output_fd.get(), ucontext); in trace_handler() 274 static void crash_handler(siginfo_t* info, ucontext_t* ucontext, void* abort_message) { in crash_handler() argument 298 debuggerd_fallback_tombstone(output_fd.get(), proto_fd.get(), ucontext, info, abort_message); in crash_handler() 307 extern "C" void debuggerd_fallback_handler(siginfo_t* info, ucontext_t* ucontext, in debuggerd_fallback_handler() argument [all …]
|
D | debuggerd_handler.cpp | 317 void* ucontext; member 369 {.iov_base = thread_info->ucontext, .iov_len = sizeof(ucontext_t)}, in debuggerd_dispatch_pseudothread() 529 auto *ucontext = static_cast<ucontext_t*>(context); in debuggerd_signal_handler() local 621 debuggerd_fallback_handler(info, ucontext, process_info.abort_msg); in debuggerd_signal_handler() 648 .ucontext = context, in debuggerd_signal_handler()
|
/system/unwinding/libunwindstack/tests/ |
D | AndroidUnwinderTest.cpp | 112 void* ucontext = nullptr; in TEST_F() local 113 EXPECT_FALSE(unwinder.Unwind(ucontext, data)); in TEST_F() 210 void* ucontext; in TEST_F() local 215 ucontext = arm_ucontext; in TEST_F() 221 ucontext = arm64_ucontext; in TEST_F() 228 ucontext = x86_ucontext; in TEST_F() 244 ucontext = x86_64_ucontext; in TEST_F() 263 ucontext = riscv64_ucontext; in TEST_F() 268 ucontext = nullptr; in TEST_F() 273 ASSERT_TRUE(ucontext != nullptr); in TEST_F() [all …]
|
D | UnwindTest.cpp | 405 void* ucontext; in TEST_F() local 407 ucontext = reinterpret_cast<void*>(g_ucontext.load()); in TEST_F() 408 if (ucontext != nullptr) { in TEST_F() 413 ASSERT_TRUE(ucontext != nullptr) << "Timed out waiting for thread to respond to signal."; in TEST_F() 417 std::unique_ptr<Regs> regs(Regs::CreateFromUcontext(Regs::CurrentArch(), ucontext)); in TEST_F()
|
/system/unwinding/libunwindstack/include/unwindstack/ |
D | RegsX86_64.h | 43 void SetFromUcontext(x86_64_ucontext_t* ucontext); 57 static Regs* CreateFromUcontext(void* ucontext);
|
D | RegsX86.h | 43 void SetFromUcontext(x86_ucontext_t* ucontext); 57 static Regs* CreateFromUcontext(void* ucontext);
|
D | RegsArm.h | 54 static Regs* CreateFromUcontext(void* ucontext);
|
D | RegsRiscv64.h | 57 static Regs* CreateFromUcontext(void* ucontext);
|
D | RegsArm64.h | 67 static Regs* CreateFromUcontext(void* ucontext);
|
D | Regs.h | 89 static Regs* CreateFromUcontext(ArchEnum arch, void* ucontext);
|
D | AndroidUnwinder.h | 85 bool Unwind(void* ucontext, AndroidUnwinderData& data);
|
/system/libziparchive/incfs_support/ |
D | signal_handling.cpp | 54 void SignalHandler::handler(int sig, siginfo_t* info, void* ucontext) { in handler() argument 75 mOldSigaction.sa_sigaction(sig, info, ucontext); in handler()
|
/system/core/debuggerd/libdebuggerd/ |
D | tombstone.cpp | 55 siginfo_t* siginfo, ucontext_t* ucontext) { in engrave_tombstone_ucontext() argument 70 unwindstack::Regs::CreateFromUcontext(unwindstack::Regs::CurrentArch(), ucontext)); in engrave_tombstone_ucontext()
|
/system/core/debuggerd/ |
D | protocol.h | 90 ucontext_t ucontext; member
|
D | crash_dump.cpp | 354 &crash_info->data.s.ucontext)); in ReadCrashInfo()
|
/system/core/debuggerd/libdebuggerd/include/libdebuggerd/ |
D | tombstone.h | 62 siginfo_t* siginfo, ucontext_t* ucontext);
|
/system/libziparchive/incfs_support/include/incfs_support/ |
D | signal_handling.h | 189 static void handler(int sig, siginfo_t* info, void* ucontext);
|