diff options
Diffstat (limited to 'src/client/linux')
-rw-r--r-- | src/client/linux/minidump_writer/linux_core_dumper.cc | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/client/linux/minidump_writer/linux_core_dumper.cc b/src/client/linux/minidump_writer/linux_core_dumper.cc index eb9e3fd0..aa6aa70f 100644 --- a/src/client/linux/minidump_writer/linux_core_dumper.cc +++ b/src/client/linux/minidump_writer/linux_core_dumper.cc @@ -188,7 +188,19 @@ bool LinuxCoreDumper::EnumerateThreads() { memset(&info, 0, sizeof(ThreadInfo)); info.tgid = status->pr_pgrp; info.ppid = status->pr_ppid; +#if defined(__mips__) + for (int i = EF_REG0; i <= EF_REG31; i++) + info.regs.regs[i - EF_REG0] = status->pr_reg[i]; + + info.regs.lo = status->pr_reg[EF_LO]; + info.regs.hi = status->pr_reg[EF_HI]; + info.regs.epc = status->pr_reg[EF_CP0_EPC]; + info.regs.badvaddr = status->pr_reg[EF_CP0_BADVADDR]; + info.regs.status = status->pr_reg[EF_CP0_STATUS]; + info.regs.cause = status->pr_reg[EF_CP0_CAUSE]; +#else memcpy(&info.regs, status->pr_reg, sizeof(info.regs)); +#endif if (first_thread) { crash_thread_ = pid; crash_signal_ = status->pr_info.si_signo; |