Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Mar 2000 14:33:07 +1030
From:      Greg Lehey <grog@lemis.com>
To:        "Fernando P. Schapachnik" <fernando@schapachnik.com.ar>
Cc:        Ben Smithurst <ben@scientia.demon.co.uk>, fernando@cursosvirtuales.com.ar, freebsd-questions@FreeBSD.ORG
Subject:   Re: Debugging kernel
Message-ID:  <20000310143306.A1286@freebie.lemis.com>
In-Reply-To: <200003092225.TAA00381@localhost.schapachnik.com.ar>
References:  <20000309165255.P62624@strontium.scientia.demon.co.uk> <200003092225.TAA00381@localhost.schapachnik.com.ar>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thursday,  9 March 2000 at 19:25:47 -0300, Fernando P. Schapachnik wrote:
> 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.

Don't bother with the PR.  It's fixed in -CURRENT, which has four
install targets:

  install		install the stripped version of the kernel
  install.debug		install the debug version of the kernel
  reinstall		install the stripped version of the kernel
  reinstall.debug	install the debug version of the kernel

The 'reinstall' targets don't overwrite /kernel.old.  They're useful
when you know that the current kernel is toast.

> [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?

This looks like a mismatch between your installation and your gdb.
Have you done a 'make world'?  You could also try:

 # gdb -k kernel.2 vmcore.2

or more simply

 # gdb -k *.2

In this case, though, I don't think that will work.  I've seen this
missing IdlePTD before, and it was some version mismatch thing.

Greg
--
Finger grog@lemis.com for PGP public key
See complete headers for address and phone numbers


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?20000310143306.A1286>