Date: Sat, 6 Nov 2010 19:20:58 -0400 From: Mark Johnston <markjdb@gmail.com> To: Ed Maste <emaste@freebsd.org> Cc: Kostik Belousov <kostikbel@gmail.com>, freebsd-hackers@freebsd.org, Gleb Kurtsou <gleb.kurtsou@gmail.com> Subject: Re: Userland debug symbols directory Message-ID: <20101106232058.GB1420@mark-laptop-bsd.mark-home> In-Reply-To: <20101106180420.GA50159@sandvine.com> References: <20101105191443.GD1437@mark-laptop-bsd.mark-home> <20101105204519.GA2843@tops> <20101106173620.GA45793@sandvine.com> <20101106175603.GL2392@deviant.kiev.zoral.com.ua> <20101106180420.GA50159@sandvine.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Nov 06, 2010 at 02:04:20PM -0400, Ed Maste wrote: > On Sat, Nov 06, 2010 at 07:56:03PM +0200, Kostik Belousov wrote: > > > On Sat, Nov 06, 2010 at 01:36:20PM -0400, Ed Maste wrote: > > > On Fri, Nov 05, 2010 at 10:45:19PM +0200, Gleb Kurtsou wrote: > > > > > > > I like the idea a lot, but why not to leave symbol files in /usr/obj, > > > > > > The application where this is most useful (and why we implemented it > > > originally) is the case where /usr/obj isn't available - for instance, > > > a binary installation other than where the source tree was built. If > > > you're going to keep /usr/obj around anyway then you can get most of > > > the benefit by just keeping the unstripped binaries / libs in there, > > > no? > > Not that easy, since you have to arrange to use libraries from obj/, > > by LD_LIBRARY_PATH etc. > > > > I fully support the work to install symbol files, and it should go > > into /usr, might be /usr/lib/debug. Possibly, some change to gdb (config) > > is required. > > > Yeah, I just mean that using LD_LIBRARY_PATH or whatever is still a lot > easier than realizing you don't have the debug info at all, and trying > to rebuild an identical binary or library with debug. > > I definitely want the changes to build and install the symbol files in > the FreeBSD tree. I don't have a huge concern over the exact path we > pick. > > -Ed FWIW, the default path is #defined in gnu/usr.bin/gdb/arch/*/config.h as DEBUGDIR. I suppose that could be changed on a system-by-system basis using a global configuration file, but apparently such a file needs to be defined at compile time: http://sourceware.org/gdb/onlinedocs/gdb/System_002dwide-configuration.html#System_002dwide-configuration I don't have a strong opinion on the location, /usr/lib/debug seems fine to me. -Mark
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20101106232058.GB1420>