Hi, I have a Q on generating kernel core dump when the system boots up..
my kernel crashes when it tries to mount the root device, /, i.e.,
before it adding the swap device to the system (so there is no swap
device when the system tries to generate core dump).. I am wondering is
there a way
Hi, Everyone:
How can I debug the core dump file created by kernel panic? I try to use gdb
-core vmcore.0 (vmcore.0 is 4G file because I have 4G memory) and the gdb
said: this is not a vaild core file. Why?
Thanks
___
freebsd-hackers@freebsd.org
[Format recovered--see http://www.lemis.com/email/email-format.html]
Single line message.
On Tuesday, 1 March 2005 at 11:41:08 +0800, River wrote:
Hi, Everyone:
How can I debug the core dump file created by kernel panic? I try to
use gdb -core vmcore.0 (vmcore.0 is 4G file because I have 4G
On Tue, Mar 01, 2005 at 11:41:08AM +0800, River wrote:
Hi, Everyone:
How can I debug the core dump file created by kernel panic? I try to
use gdb -core vmcore.0 (vmcore.0 is 4G file because I have 4G
memory) and the gdb said: this is not a vaild core file. Why?
Read the chapter on kernel
How can I debug the core dump file created by kernel panic? I try to use gdb
-core vmcore.0 (vmcore.0 is 4G file because I have 4G memory) and the gdb
said: this is not a vaild core file. Why?
AFAIK you have to use 'gdb -k' (or 'kgdb') to use GDB's kernel debugging mode.
--
FreeBSD
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
This has been fixed with the following commit:
luoqi 1999/05/24 12:31:19 PDT
Modified files:(Branch: RELENG_3)
gnu/usr.bin/binutils/gdb/i386 freebsd-nat.c kvm-fbsd.c
Log:
Back out changes don't belong to the 3.x branch.
Revision ChangesPath
1.21.2.2 +3 -1
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
This has been fixed with the following commit:
luoqi 1999/05/24 12:31:19 PDT
Modified files:(Branch: RELENG_3)
gnu/usr.bin/binutils/gdb/i386 freebsd-nat.c kvm-fbsd.c
Log:
Back out changes don't belong to the 3.x branch.
Revision ChangesPath
1.21.2.2 +3 -1
9 matches
Mail list logo