aboutsummaryrefslogtreecommitdiff
path: root/src/client/linux
diff options
context:
space:
mode:
authorGordana Cmiljanovic <gordana.cmiljanovic@imgtec.com>2017-03-22 10:04:30 +0100
committerMark Mentovai <mark@chromium.org>2017-03-22 12:47:06 +0000
commit77411db895405ebd3daa8cb19c2683ce0f5e9737 (patch)
tree8725ea8c8848942169efd17f273a5a87c4f4aeb1 /src/client/linux
parentdump_context: arm: name the registers in the dump output (diff)
downloadbreakpad-77411db895405ebd3daa8cb19c2683ce0f5e9737.tar.xz
[MIPS] Get (ptrace) value of $pc for a thread
This change is fixing LinuxPtraceDumperTest.SanitizeStackCopy test case. Change-Id: I1eb3becfd4b3660bc5529b5d2a5e35db0b6eb6e0 Reviewed-on: https://chromium-review.googlesource.com/458277 Reviewed-by: Mark Mentovai <mark@chromium.org>
Diffstat (limited to 'src/client/linux')
-rw-r--r--src/client/linux/minidump_writer/linux_ptrace_dumper.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/client/linux/minidump_writer/linux_ptrace_dumper.cc b/src/client/linux/minidump_writer/linux_ptrace_dumper.cc
index c35e0e95..30b8f3dd 100644
--- a/src/client/linux/minidump_writer/linux_ptrace_dumper.cc
+++ b/src/client/linux/minidump_writer/linux_ptrace_dumper.cc
@@ -250,6 +250,8 @@ bool LinuxPtraceDumper::GetThreadInfoByIndex(size_t index, ThreadInfo* info) {
#if defined(__mips__)
sys_ptrace(PTRACE_PEEKUSER, tid,
+ reinterpret_cast<void*>(PC), &info->mcontext.pc);
+ sys_ptrace(PTRACE_PEEKUSER, tid,
reinterpret_cast<void*>(DSP_BASE), &info->mcontext.hi1);
sys_ptrace(PTRACE_PEEKUSER, tid,
reinterpret_cast<void*>(DSP_BASE + 1), &info->mcontext.lo1);