[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Policy or best practices for debug packages?

On Wed, Jul 09, 2008 at 12:00:38AM +0100, Roger Leigh wrote:
> Daniel Jacobowitz <dan@debian.org> writes:
> > On Mon, Jul 07, 2008 at 10:06:40PM +0100, Roger Leigh wrote:
> >> Correct line numbers when dealing with inline templates, for one.
> >> There were some other niceties, but I can't recall what they were off
> >> the top of my head.
> >
> > Sorry, but this is either someone's uncontributed gcc patches, or
> > (more likely) hearsay.
> I fairly sure I saw a clear difference at one point, though it would
> have been with GCC 3.3 or 4.0.  Here if I didn't use -g3, I would get
> the line number in the source file with a backtrace, but with -g3 I
> would get the line number inside the inline templated function I was
> calling on that line.
> However, it's been some time since I did this and my memory may be
> faulty.  It may be that I was also using -gdwarf-2 when stabs was
> still the default, and that's where the difference lies.  I can't
> remember when DWARF2 became the default.

Hum, unless I'm mistaken as to what you mean by inline templated
functions, I do see that on mozilla nsCOMPtr<type> constructs, that show
me line numbers in nsCOMPtr.h. That is with -g, not -g3.


Reply to: