The kernel (a hacked 3.2-RELEASE) dumps core (courtesy a panic), and upon a subsequent boot, the following happens:
# cd /usr/src/sys/compile/FOOKERNEL # gdb -k GNU gdb 4.18 ... (kgdb) symbol-file kernel.debug Reading symbols from kernel.debug...done. (kgdb) exec-file /var/crash/kernel.0 (kgdb) core-file /var/crash/vmcore.0 IdlePTD 4294967295 kernel symbol `gd_curpcb' not found. gd_curpcb is (apparently) not referenced in either of the kernel, kernel.debug or vmcore files. It is however referenced in /usr/libexec/elf/gdb though. Next, a "grep gd_curpcb **/*" in the GNU source for gdb-4.18 yields no match. The file src/gnu/usr.bin/binutils/i386/kvm-fbsd.c does contain the following: curpcb = kvtophys(cfd, ksym_lookup ("gd_curpcb") + prv_start); The question is: where is this symbol defined so that gdb can look it up successfully? Regards Amit Singh To Unsubscribe: send mail to majord...@freebsd.org with "unsubscribe freebsd-hackers" in the body of the message