]> granicus.if.org Git - strace/commitdiff
add code to print PC for MIPS
authorWichert Akkerman <wichert@deephackmode.org>
Tue, 10 Apr 2001 10:22:50 +0000 (10:22 +0000)
committerWichert Akkerman <wichert@deephackmode.org>
Tue, 10 Apr 2001 10:22:50 +0000 (10:22 +0000)
util.c

diff --git a/util.c b/util.c
index db5408e97cb864ab59a993751e33ed0196a0db74..19a24e48139583d062a33757bdcfbeec7c25ee68 100644 (file)
--- 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 */