| Index: runtime/vm/signal_handler_linux.cc
|
| diff --git a/runtime/vm/signal_handler_linux.cc b/runtime/vm/signal_handler_linux.cc
|
| index 1df46f0cb118aa8eaffcd97451944d51e6473977..b867c0082f3f6c82d2016d179f34ec26844bc25c 100644
|
| --- a/runtime/vm/signal_handler_linux.cc
|
| +++ b/runtime/vm/signal_handler_linux.cc
|
| @@ -3,6 +3,7 @@
|
| // BSD-style license that can be found in the LICENSE file.
|
|
|
| #include "vm/globals.h"
|
| +#include "vm/instructions.h"
|
| #include "vm/simulator.h"
|
| #include "vm/signal_handler.h"
|
| #if defined(TARGET_OS_LINUX)
|
| @@ -72,7 +73,7 @@ uintptr_t SignalHandler::GetCStackPointer(const mcontext_t& mcontext) {
|
|
|
| uintptr_t SignalHandler::GetDartStackPointer(const mcontext_t& mcontext) {
|
| #if defined(TARGET_ARCH_ARM64) && !defined(USING_SIMULATOR)
|
| - return static_cast<uintptr_t>(mcontext.regs[19]);
|
| + return static_cast<uintptr_t>(mcontext.regs[SPREG]);
|
| #else
|
| return GetCStackPointer(mcontext);
|
| #endif
|
|
|