From owner-freebsd-questions@FreeBSD.ORG Sun Nov 23 19:02:13 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 57CC116A4CE for ; Sun, 23 Nov 2003 19:02:13 -0800 (PST) Received: from newhost.cpf.navy.mil (rnoc2.cpf.navy.mil [199.124.15.37]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6034043F3F for ; Sun, 23 Nov 2003 19:02:12 -0800 (PST) (envelope-from kuriyama@newhost.cpf.navy.mil) Received: from newhost.cpf.navy.mil (localhost [127.0.0.1]) hAO329A6041877; Sun, 23 Nov 2003 17:02:09 -1000 (HST) (envelope-from kuriyama@newhost.cpf.navy.mil) Received: (from kuriyama@localhost) by newhost.cpf.navy.mil (8.12.8p2/8.12.8/Submit) id hAO329T5041876; Sun, 23 Nov 2003 17:02:09 -1000 (HST) From: Kent Kuriyama Message-Id: <200311240302.hAO329T5041876@newhost.cpf.navy.mil> To: questions@freebsd.org Date: Sun, 23 Nov 2003 17:02:09 -1000 (HST) X-Mailer: ELM [version 2.5 PL6] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: Kent Kuriyama Subject: Questions regarding use of 'gdb -k' X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Nov 2003 03:02:13 -0000 I am having difficulty in using 'gdb -k' to track down a kernel panic. I have built a version of the kernel with the debugging symbols. After the crash I use the 'gdb -k' command but get the following output: ------------------ chinmon1# gdb -k /data1/src/sys/compile/ata/kernel.debug /var/crash/kernel.29 GNU gdb 4.18 (FreeBSD) Copyright 1998 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or 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. This GDB was configured as "i386-unknown-freebsd"...Deprecated bfd_read called a t /data1/src/gnu/usr.bin/binutils/gdb/../../../../contrib/gdb/gdb/dbxread.c line 2627 in elfstab_build_psymtabs Deprecated bfd_read called at /data1/src/gnu/usr.bin/binutils/gdb/../../../../co ntrib/gdb/gdb/dbxread.c line 933 in fill_symbuf IdlePTD at phsyical address 0x00000000 initial pcb at physical address 0x0048cee0 cannot read proc at 0 (kgdb) where #0 0x0 in ?? () (kgdb) exit Undefined command: "exit". Try "help". (kgdb) chinmon1# ------------------ Can you tell me what I am doing wrong? Thanks. Kent Kuriyama