Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Aug 1999 12:15:51 -0400 (EDT)
From:      Zhihui Zhang <zzhang@cs.binghamton.edu>
To:        freebsd-hackers@freebsd.org
Subject:   Kernel debugging questions
Message-ID:  <Pine.GSO.3.96.990819120726.26959A-100000@sol.cs.binghamton.edu>

next in thread | raw e-mail | index | archive | help

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.3.96.990819120726.26959A-100000>