Index: src/client/linux/dump_writer_common/thread_info.cc |
diff --git a/src/client/linux/dump_writer_common/thread_info.cc b/src/client/linux/dump_writer_common/thread_info.cc |
index 9956d4450bb4b494cbb341ae3db6ff2c859d48ce..0a1041d62d3059d29982ba8e380fbe7960c7b1fd 100644 |
--- a/src/client/linux/dump_writer_common/thread_info.cc |
+++ b/src/client/linux/dump_writer_common/thread_info.cc |
@@ -235,7 +235,13 @@ uintptr_t ThreadInfo::GetInstructionPointer() const { |
} |
void ThreadInfo::FillCPUContext(RawContextCPU* out) const { |
+#if _MIPS_SIM == _ABI64 |
+ out->context_flags = MD_CONTEXT_MIPS64_FULL; |
+#elif _MIPS_SIM == _ABIO32 |
out->context_flags = MD_CONTEXT_MIPS_FULL; |
+#else |
+# error "This mips ABI is currently not supported (n32)" |
+#endif |
for (int i = 0; i < MD_CONTEXT_MIPS_GPR_COUNT; ++i) |
out->iregs[i] = mcontext.gregs[i]; |