commit | 75c422b3a8c2eecc403f14a00e14f7675149dd07 | [log] [tgz] |
---|---|---|
author | Wichert Akkerman <wichert@deephackmode.org> | Tue Apr 10 10:22:50 2001 +0000 |
committer | Wichert Akkerman <wichert@deephackmode.org> | Tue Apr 10 10:22:50 2001 +0000 |
tree | adf94f2f4da3b816c2bcb9873f6ae679a5600195 | |
parent | e70bbe533a30ce6429927b0b852778a44ccae70b [diff] [blame] |
add code to print PC for MIPS
diff --git a/util.c b/util.c index db5408e..19a24e4 100644 --- a/util.c +++ b/util.c
@@ -996,6 +996,14 @@ 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 */