Skip to content

Commit

Permalink
Add support of loongarch64 (#1110)
Browse files Browse the repository at this point in the history
  • Loading branch information
imaiguo committed Feb 23, 2022
1 parent 7f850b3 commit 808bc20
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions absl/debugging/internal/examine_stack.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 808bc20

Please sign in to comment.