From: Wichert Akkerman Date: Tue, 10 Apr 2001 10:22:50 +0000 (+0000) Subject: add code to print PC for MIPS X-Git-Tag: v4.5.18~1049 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=75c422b3a8c2eecc403f14a00e14f7675149dd07;p=strace add code to print PC for MIPS --- diff --git a/util.c b/util.c index db5408e9..19a24e48 100644 --- a/util.c +++ b/util.c @@ -996,6 +996,14 @@ struct tcb *tcp; return; } tprintf("[%08lx] ", pc); +#elif defined(MIPS) + long pc; + + if (upeek(tcp->pid, REG_EPC, &pc) < 0) { + tprintf ("[????????] "); + return; + } + tprintf("[%08lx] ", pc); #endif /* !architecture */ #endif /* LINUX */