From eb40633b9be2145e54a12c11b871b07e78dccf3a Mon Sep 17 00:00:00 2001 From: Dejan Jevtic Date: Fri, 4 Apr 2014 10:02:03 +0000 Subject: [PATCH] mips32: Add an extra case for mips32 in ML_(get_CFA) in witch Valgrind will call compute_cfa to get the call frame address. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13890 --- coregrind/m_debuginfo/debuginfo.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/coregrind/m_debuginfo/debuginfo.c b/coregrind/m_debuginfo/debuginfo.c index bc8418dad..2846b407d 100644 --- a/coregrind/m_debuginfo/debuginfo.c +++ b/coregrind/m_debuginfo/debuginfo.c @@ -2426,6 +2426,14 @@ Addr ML_(get_CFA) ( Addr ip, Addr sp, Addr fp, return compute_cfa(&uregs, min_accessible, max_accessible, di, cfsi); } +#elif defined(VGA_mips32) + { D3UnwindRegs uregs; + uregs.pc = ip; + uregs.sp = sp; + uregs.fp = fp; + return compute_cfa(&uregs, + min_accessible, max_accessible, di, cfsi); + } # else return 0; /* indicates failure */