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

Re: Policy or best practices for debug packages?



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.


Regards,
Roger

-- 
  .''`.  Roger Leigh
 : :' :  Debian GNU/Linux             http://people.debian.org/~rleigh/
 `. `'   Printing on GNU/Linux?       http://gutenprint.sourceforge.net/
   `-    GPG Public Key: 0x25BFB848   Please GPG sign your mail.

Attachment: pgp11tQ6K0hE0.pgp
Description: PGP signature


Reply to: