Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1207)

Unified Diff: runtime/vm/signal_handler_linux.cc

Issue 108533005: Fixes Unimplemented crasher on MIPS. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/signal_handler_linux.cc
===================================================================
--- runtime/vm/signal_handler_linux.cc (revision 31192)
+++ runtime/vm/signal_handler_linux.cc (working copy)
@@ -22,6 +22,8 @@
pc = static_cast<uintptr_t>(mcontext.gregs[REG_EIP]);
#elif defined(TARGET_ARCH_ARM)
pc = static_cast<uintptr_t>(mcontext.arm_pc);
+#elif defined(TARGET_ARCH_MIPS)
+ pc = static_cast<uintptr_t>(mcontext.pc);
#else
UNIMPLEMENTED();
#endif // TARGET_ARCH_...
@@ -42,6 +44,8 @@
fp = static_cast<uintptr_t>(mcontext.gregs[REG_EBP]);
#elif defined(TARGET_ARCH_ARM)
fp = static_cast<uintptr_t>(mcontext.arm_fp);
+#elif defined(TARGET_ARCH_MIPS)
+ fp = static_cast<uintptr_t>(mcontext.gregs[30]);
#else
UNIMPLEMENTED();
#endif // TARGET_ARCH_...
@@ -63,6 +67,8 @@
sp = static_cast<uintptr_t>(mcontext.gregs[REG_ESP]);
#elif defined(TARGET_ARCH_ARM)
sp = static_cast<uintptr_t>(mcontext.arm_sp);
+#elif defined(TARGET_ARCH_MIPS)
+ sp = static_cast<uintptr_t>(mcontext.gregs[29]);
#else
UNIMPLEMENTED();
#endif // TARGET_ARCH_...
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698