Subject: crash dump analysys with and without symbols
To: None <port-alpha@NetBSD.ORG>
From: Ken Hornstein <kenh@cmf.nrl.navy.mil>
List: port-alpha
Date: 05/07/1997 16:43:47
So, I've been trying to debug this kernel module on the alpha, and maybe I'm
not doing something right ... but gdb isn't behaving like I would expect
it to.

Here's what I get when I look at the crash dump:

% gdb -k /usr/crash/netbsd.2 /usr/crash/netbsd.2.core
GDB is free software and you are welcome to distribute copies of it
 under certain conditions; type "show copying" to see the conditions.
There is absolutely no warranty for GDB; type "show warranty" for details.
GDB 4.16 (alpha-unknown-netbsd1.2D
Copyright 1996 Free Software Foundation, Inc...(no debugging symbols found)...
panic: trap
#0  0xfffffc00003fad90 in dumpsys ()
(kgdb) where
#0  0xfffffc00003fad90 in dumpsys ()
#1  0xfffffc00003fab3c in cpu_reboot ()
#2  0xfffffc0000322a74 in panic ()
#3  0xfffffc000040011c in trap ()
#4  0xfffffc0000300354 in XentIF ()
#5  0xfffffc0000400360 in syscall ()

Not that useful without symbols, so I figure I'll use netbsd.gdb ....

% gdb -k /sys/arch/alpha/compile/PRISCILLA/netbsd.gdb /usr/crash/netbsd.2.core
GDB is free software and you are welcome to distribute copies of it
 under certain conditions; type "show copying" to see the conditions.
There is absolutely no warranty for GDB; type "show warranty" for details.
GDB 4.16 (alpha-unknown-netbsd1.2D), 
Copyright 1996 Free Software Foundation, Inc...
panic: trap
#0  0xfffffc00003fad90 in dumpsys ()
    at ../../../../arch/alpha/alpha/machdep.c:924
924             savectx(&dumppcb);
(kgdb) where
#0  0xfffffc00003fad90 in dumpsys ()
    at ../../../../arch/alpha/alpha/machdep.c:924
#1  0xfffffc00003fab3c in cpu_reboot ()
    at ../../../../arch/alpha/alpha/machdep.c:789
#2  0xfffffc0000322a74 in panic () at ../../../../kern/subr_prf.c:149
#3  0xfffffc000040011c in trap () at ../../../../arch/alpha/alpha/trap.c:454

This is all fine .... but where are the last two stack frames, which
has the info that I _really_ want?  Do I need to do something else to make
this work?

--Ken