From owner-freebsd-hackers Thu Aug 19 9:29:27 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from bingnet2.cc.binghamton.edu (bingnet2.cc.binghamton.edu [128.226.1.18]) by hub.freebsd.org (Postfix) with ESMTP id 2B974151A3 for ; Thu, 19 Aug 1999 09:29:22 -0700 (PDT) (envelope-from zzhang@cs.binghamton.edu) Received: from sol.cs.binghamton.edu (cs1-gw.cs.binghamton.edu [128.226.171.72]) by bingnet2.cc.binghamton.edu (8.9.3/8.9.3) with SMTP id MAA13645 for ; Thu, 19 Aug 1999 12:29:12 -0400 (EDT) Date: Thu, 19 Aug 1999 12:15:51 -0400 (EDT) From: Zhihui Zhang To: freebsd-hackers@freebsd.org Subject: Kernel debugging questions Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I am using FreeBSD 4.0 and have two questions on kernel debugging: (1) Can I specify /usr/src/sys/compile/MYKERN/kernel.debug as the kernel to boot from manually without copying that file under /? It seems I can not do so. I guess the reason is that the /usr is not mounted at that time. (2) After bootup, I try the following to debug the live system (after reading some pages of the book "Panic! Unix system crash dump analysis"): now4# gdb -k /kernel.debug /dev/mem (kgdb) run Starting program: /kernel.debug Program terminated with signal SIGABRT, Aborted. The program no longer exists. You can't do that without a process to debug. Is there something wrong? I did the same thing with the postmortem coredump files and got similar messages. Maybe I am using gdb in a wrong way. Any help is appreciated. -------------------------------------------------- Zhihui Zhang. Please visit http://www.freebsd.org -------------------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message