Date: Sat, 7 Aug 2010 10:58:50 +0930 From: "Daniel O'Connor" <doconnor@gsoft.com.au> To: freebsd-stable@FreeBSD.ORG, doconnor@gsoft.com.au Subject: Re: Kernel symbol file alternate location Message-ID: <6966631B-05C7-4219-9144-F90F2E6FECAE@gsoft.com.au> In-Reply-To: <201008060815.o768FVGO025698@lurza.secnetix.de> References: <201008060815.o768FVGO025698@lurza.secnetix.de>
next in thread | previous in thread | raw e-mail | index | archive | help
--Apple-Mail-3-42136101 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii On 06/08/2010, at 17:45, Oliver Fromme wrote: > Daniel O'Connor wrote: >> On 06/08/2010, at 16:59, Oliver Fromme wrote: >>>> Yeah, I don't think it's hard to move them, however I'm worried what >>>> it will break :) >>>> >>>> The only thing I can see that would have to change would be kgdb so >>>> it tells gdb where to find the symbols. >>> >>> That's why I suggested to place symlinks in the kernel >>> directory. No change to kgdb necessary. >> >> Ahh of course. >> >> Although that does make it harder because you have to modify all the >> links when the old kernel is moved out of the way. > > Right. Maybe make a symlink to a directory, so only that > symlink has to be changed: > > /boot/kernel/symbols -> /var/db/symbols/kernel > /boot/kernel/kernel.symbols -> symbols/kernel.symbols > /boot/kernel/acpi.symbols -> symbols/acpi.symbols > .. and so on. > > When the kernel is rotated to kernel.old, only one symlink > has to be changed: > > /boot/kernel.old/symbols -> /var/db/symbols/kernel.old > > Of course, /var/db is just an example off the top of my head. > The symbols directory should be configurable via make.conf, too. Yes that makes sense. I guess the next thing is to make patches :) >> Hmm, I think they would need to go elsewhere otherwise they wouldn't >> be available to people who do binary installs, hence the usefulness >> of bug reports would go down. > > Right, I was thinking of developers only, who usually have a > populated /usr/obj directory ... But there's a world full of > non-developers, too. :-) Yeah and they find lots of bugs :( -- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C --Apple-Mail-3-42136101--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6966631B-05C7-4219-9144-F90F2E6FECAE>