From: Dejan Jevtic Date: Fri, 4 Apr 2014 10:02:03 +0000 (+0000) Subject: mips32: Add an extra case for mips32 in ML_(get_CFA) in witch Valgrind will call X-Git-Tag: svn/VALGRIND_3_10_0~546 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eb40633b9be2145e54a12c11b871b07e78dccf3a;p=thirdparty%2Fvalgrind.git 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 --- diff --git a/coregrind/m_debuginfo/debuginfo.c b/coregrind/m_debuginfo/debuginfo.c index bc8418dad4..2846b407db 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 */