add code to print PC for MIPS

This commit is contained in:
Wichert Akkerman 2001-04-10 10:22:50 +00:00
parent e70bbe533a
commit 75c422b3a8

8
util.c
View File

@ -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 */