Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Oct 2010 21:58:26 -0400
From:      Mark Johnston <markjdb@gmail.com>
To:        Kostik Belousov <kostikbel@gmail.com>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: Generating userland debugging symbols
Message-ID:  <20101030015826.GA1305@mark-laptop-bsd.mark-home>
In-Reply-To: <20101029233900.GC2392@deviant.kiev.zoral.com.ua>
References:  <20101029191827.GC1443@mark-laptop-bsd.mark-home> <20101029233900.GC2392@deviant.kiev.zoral.com.ua>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Oct 30, 2010 at 02:39:00AM +0300, Kostik Belousov wrote:
> I do think that something like this would be useful. But, shouldn't
> the DEBUG_FLAGS be also involved in the patch ? The goal would be
> to have debug symbols for userland staff. esp. the libraries,
> handled in a similar manner to kernel symbols.
> 
> But I do like the intent of keeping the symbols in the separate directory.

Yes, you're right. What I would probably do is have make(1) set
DEBUG_FLAGS=-g automatically if WITH_DEBUG_SYMBOLS is defined in
/etc/src.conf. I've been using the source tree at my work, which
has another Makefile and some other scripts on top of the FreeBSD build
system, so they're probably doing some things I don't know about. Based
on what I've seen however, it shouldn't be too much work to port the
necessary changes over.

-Mark



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