Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 6 Nov 2010 14:04:20 -0400
From:      Ed Maste <emaste@freebsd.org>
To:        Kostik Belousov <kostikbel@gmail.com>
Cc:        freebsd-hackers@freebsd.org, Gleb Kurtsou <gleb.kurtsou@gmail.com>, Johnston <markjdb@gmail.com>, Mark
Subject:   Re: Userland debug symbols directory
Message-ID:  <20101106180420.GA50159@sandvine.com>
In-Reply-To: <20101106175603.GL2392@deviant.kiev.zoral.com.ua>
References:  <20101105191443.GD1437@mark-laptop-bsd.mark-home> <20101105204519.GA2843@tops> <20101106173620.GA45793@sandvine.com> <20101106175603.GL2392@deviant.kiev.zoral.com.ua>

next in thread | previous in thread | raw e-mail | index | archive | help
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



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