9#if defined(DART_HOST_OS_MACOS)
16#if defined(HOST_ARCH_IA32)
17 pc =
static_cast<uintptr_t
>(mcontext->__ss.__eip);
18#elif defined(HOST_ARCH_X64)
19 pc =
static_cast<uintptr_t
>(mcontext->__ss.__rip);
20#elif defined(HOST_ARCH_ARM)
21 pc =
static_cast<uintptr_t
>(mcontext->__ss.__pc);
22#elif defined(HOST_ARCH_ARM64)
23 pc =
static_cast<uintptr_t
>(mcontext->__ss.__pc);
25#error Unsupported architecture.
34#if defined(HOST_ARCH_IA32)
35 fp =
static_cast<uintptr_t
>(mcontext->__ss.__ebp);
36#elif defined(HOST_ARCH_X64)
37 fp =
static_cast<uintptr_t
>(mcontext->__ss.__rbp);
38#elif defined(HOST_ARCH_ARM)
39 fp =
static_cast<uintptr_t
>(mcontext->__ss.__r[7]);
40#elif defined(HOST_ARCH_ARM64)
41 fp =
static_cast<uintptr_t
>(mcontext->__ss.__fp);
43#error Unsupported architecture.
52#if defined(HOST_ARCH_IA32)
53 sp =
static_cast<uintptr_t
>(mcontext->__ss.__esp);
54#elif defined(HOST_ARCH_X64)
55 sp =
static_cast<uintptr_t
>(mcontext->__ss.__rsp);
56#elif defined(HOST_ARCH_ARM)
57 sp =
static_cast<uintptr_t
>(mcontext->__ss.__sp);
58#elif defined(HOST_ARCH_ARM64)
59 sp =
static_cast<uintptr_t
>(mcontext->__ss.__sp);
68#if defined(TARGET_ARCH_ARM64) && !defined(USING_SIMULATOR)
69 return static_cast<uintptr_t
>(mcontext->__ss.__x[
SPREG]);
78#if defined(HOST_ARCH_IA32)
80#elif defined(HOST_ARCH_X64)
82#elif defined(HOST_ARCH_ARM)
83 lr =
static_cast<uintptr_t
>(mcontext->__ss.__lr);
84#elif defined(HOST_ARCH_ARM64)
85 lr =
static_cast<uintptr_t
>(mcontext->__ss.__lr);
87#error Unsupported architecture.
static uintptr_t GetDartStackPointer(const mcontext_t &mcontext)
static uintptr_t GetCStackPointer(const mcontext_t &mcontext)
static uintptr_t GetFramePointer(const mcontext_t &mcontext)
static uintptr_t GetProgramCounter(const mcontext_t &mcontext)
static void Install(SignalAction action)
static uintptr_t GetLinkRegister(const mcontext_t &mcontext)
void(* SignalAction)(int signal, siginfo_t *info, void *context)