From 77411db895405ebd3daa8cb19c2683ce0f5e9737 Mon Sep 17 00:00:00 2001 From: Gordana Cmiljanovic Date: Wed, 22 Mar 2017 10:04:30 +0100 Subject: [PATCH] [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 --- src/client/linux/minidump_writer/linux_ptrace_dumper.cc | 2 ++ 1 file changed, 2 insertions(+) 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 @@ -249,6 +249,8 @@ bool LinuxPtraceDumper::GetThreadInfoByIndex(size_t index, ThreadInfo* info) { #endif #if defined(__mips__) + sys_ptrace(PTRACE_PEEKUSER, tid, + reinterpret_cast(PC), &info->mcontext.pc); sys_ptrace(PTRACE_PEEKUSER, tid, reinterpret_cast(DSP_BASE), &info->mcontext.hi1); sys_ptrace(PTRACE_PEEKUSER, tid,