Kernel symbol file alternate location

jhell jhell at dataix.net
Sat Aug 7 09:05:36 UTC 2010


On 08/06/2010 06:19, Oliver Fromme wrote:
> Kostik Belousov <kostikbel at gmail.com> wrote:
>  > If you keep /usr/obj around, you do not need symbol files at all,
>  > and INSTALL_NODEBUG?=true in make.conf is enough. You can always
>  > use kernel.debug and modules with debugging symbols from build
>  > directory for kgdb.
> 
> OK ...  But that won't work for /boot/kernel.old.
> 
> Best regards
>    Oliver
> 

kernel /boot/kernel
symbols /boot/sym

When kernel is upgraded old kernel and sym becomes
/boot/kernel.old
/boot/sym.old

If I remember correctly in a recent backtrace that I have tried when I
used /boot/kernel.old/kernel the symbols ended up loading from
/boot/kernel anyway and not the kernel.old directory. So whether these
are moved to a different location or not I do not believe it will make
that much of a difference on where they are loaded from. I may be wrong
about this.

IMO creating symlink's is going to be a bad way to handle this and
adjusting the respective utilities that use the symbols is a much more
permanent and failure safe way to go about this. Besides moving the
location of the symbols and having a debugging utility or crash dump
utility fail is not really a mission critical failure and would be able
to be found and corrected fairly quick among the amount of people that
are using these.

$0.02 US


Regards,

-- 

 jhell,v



More information about the freebsd-stable mailing list