diff options
author | imaiguo <maaiguo@uniontech.com> | 2022-02-23 22:56:32 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-23 09:56:32 -0500 |
commit | 808bc202fc13e85a7948db0d7fb58f0f051200b1 (patch) | |
tree | 88ec772a8d4c4f8865216e02be73523ac182a727 /absl/debugging | |
parent | 7f850b3167fb38e6b4a9ce1824e6fabd733b5d62 (diff) |
Add support of loongarch64 (#1110)
Diffstat (limited to 'absl/debugging')
-rw-r--r-- | absl/debugging/internal/examine_stack.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/absl/debugging/internal/examine_stack.cc b/absl/debugging/internal/examine_stack.cc index 589a3ef3..2fbfea8e 100644 --- a/absl/debugging/internal/examine_stack.cc +++ b/absl/debugging/internal/examine_stack.cc @@ -82,6 +82,8 @@ void* GetProgramCounter(void* vuc) { return reinterpret_cast<void*>(context->uc_mcontext.gregs[16]); #elif defined(__e2k__) return reinterpret_cast<void*>(context->uc_mcontext.cr0_hi); +#elif defined(__loongarch__) + return reinterpret_cast<void*>(context->uc_mcontext.__pc); #else #error "Undefined Architecture." #endif |