From owner-freebsd-hackers Thu Aug 26 13:22:16 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from crufty.research.bell-labs.com (crufty.research.bell-labs.com [204.178.16.49]) by hub.freebsd.org (Postfix) with SMTP id EF5C414C18 for ; Thu, 26 Aug 1999 13:22:12 -0700 (PDT) (envelope-from amitsingh@aura.research.bell-labs.com) Received: from scummy.research.bell-labs.com ([135.104.2.10]) by crufty; Thu Aug 26 16:18:37 EDT 1999 Received: from aura.research.bell-labs.com ([135.104.46.10]) by scummy; Thu Aug 26 16:18:36 EDT 1999 Received: (from amitsingh@localhost) by aura.research.bell-labs.com (8.9.1/8.9.1) id QAA08160 for hackers@FreeBSD.ORG; Thu, 26 Aug 1999 16:18:33 -0400 (EDT) From: Amit Singh Message-Id: <199908262018.QAA08160@aura.research.bell-labs.com> Subject: Examining kernel core dump: gd_curpcb To: hackers@FreeBSD.ORG Date: Thu, 26 Aug 1999 16:18:33 -0400 (EDT) X-Mailer: ELM [version 2.4 PL25] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message