Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 Mar 2000 19:25:47 -0300 (ART)
From:      "Fernando P. Schapachnik" <fernando@schapachnik.com.ar>
To:        ben@scientia.demon.co.uk (Ben Smithurst)
Cc:        fernando@cursosvirtuales.com.ar, freebsd-questions@freebsd.org
Subject:   Re: Debugging kernel
Message-ID:  <200003092225.TAA00381@localhost.schapachnik.com.ar>
In-Reply-To: <20000309165255.P62624@strontium.scientia.demon.co.uk> from Ben Smithurst at "Mar 9, 0 04:52:55 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
En un mensaje anterior Ben Smithurst escribió:
> config -g FOO
> cd ../../compile/FOO
> make depend
> make
> cp kernel kernel.debug
> strip -g kernel
> make install
> 
> Doesn't the FAQ say this? Anyway, then you can "make install" to get the

No it doesn´t. It says that make after config -g will produce both kernels.
I´ll send a PR about this as soon as I get it to work.

> stripped kernel installed. If it panics again, then,
> 
> cd /var/crash
> gdb -k
> 
> at gdb prompt, (n is the suffix of the newest dump)
> 
> exec-file kernel.n
> core-file vmcore.n
> symbol-file /sys/compile/FOO/kernel.debug


Look what happened:

[103]Recabarren:/var/crash>l
total 78892
drwxr-xr-x   2 root  wheel       512  9 mar 19:19 ./
drwxr-xr-x  20 root  wheel       512  7 mar 23:05 ../
-rw-r--r--   1 root  wheel         2  9 mar 19:15 bounds
-rw-r--r--   1 root  wheel   2284153  9 mar 19:15 kernel.2
-rwxr-xr-x   1 root  wheel  11323875  9 mar 16:29 kernel.debug*
-rw-r--r--   1 root  wheel       729  9 mar 19:19 typescript
-rw-------   1 root  wheel  67108864  9 mar 19:15 vmcore.2
[104]Recabarren:/var/crash>gdb -k
GNU gdb 4.18
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".
(kgdb) exec-file kernel.2
(kgdb) core-file vmcore.2
kernel symbol `IdlePTD' not found.
(kgdb) where
No stack.
(kgdb) symbol-file kernel.debug
Reading symbols from kernel.debug...done.
(kgdb) where
No stack.


Any clues?

Thanks for your help anyway.


Fernando P. Schapachnik
fernando@schapachnik.com.ar



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200003092225.TAA00381>