Index: src/client/linux/minidump_writer/linux_core_dumper.cc |
=================================================================== |
--- src/client/linux/minidump_writer/linux_core_dumper.cc (revision 1208) |
+++ src/client/linux/minidump_writer/linux_core_dumper.cc (working copy) |
@@ -99,6 +99,9 @@ |
memcpy(&stack_pointer, &info->regs.rsp, sizeof(info->regs.rsp)); |
#elif defined(__ARM_EABI__) |
memcpy(&stack_pointer, &info->regs.ARM_sp, sizeof(info->regs.ARM_sp)); |
+#elif defined(__mips__) |
+ stack_pointer = |
+ reinterpret_cast<uint8_t*>(info->regs.regs[MD_CONTEXT_MIPS_REG_SP]); |
#else |
#error "This code hasn't been ported to your platform yet." |
#endif |