]> git.hungrycats.org Git - linux/commitdiff
[PATCH] alpha: print the symbol of pc and ra during Oops
authorAneesh Kumar <aneesh.kumar@gmail.com>
Mon, 23 Aug 2004 05:59:03 +0000 (22:59 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Mon, 23 Aug 2004 05:59:03 +0000 (22:59 -0700)
The below patch add the symbol information of the pc and ra to the Oops
message.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/alpha/kernel/traps.c

index 2248735b8f5ee1b838d7e1df90d02d548e0bf9d4..75a7fad3fd493446bb76275e8d4e8d19178cb10f 100644 (file)
@@ -65,6 +65,8 @@ dik_show_regs(struct pt_regs *regs, unsigned long *r9_15)
 {
        printk("pc = [<%016lx>]  ra = [<%016lx>]  ps = %04lx    %s\n",
               regs->pc, regs->r26, regs->ps, print_tainted());
+       print_symbol("pc is at %s\n", regs->pc);
+       print_symbol("ra is at %s\n", regs->r26 );
        printk("v0 = %016lx  t0 = %016lx  t1 = %016lx\n",
               regs->r0, regs->r1, regs->r2);
        printk("t2 = %016lx  t3 = %016lx  t4 = %016lx\n",