comp.lang.ada
 help / color / mirror / Atom feed
From: Robert A Duff <bobduff@shell01.TheWorld.com>
Subject: Re: addr2line i mingw gcc 4.4.0
Date: Sat, 27 Jun 2009 13:09:47 -0400
Date: 2009-06-27T13:09:47-04:00	[thread overview]
Message-ID: <wccws6xr4bo.fsf@shell01.TheWorld.com> (raw)
In-Reply-To: uab3tkja7.fsf@stephe-leake.org

Stephen Leake <stephen_leake@stephe-leake.org> writes:

> A third alternative is to output numeric traceback from the failing
> program, and then use addr2line (the program) to get the symbolic
> traceback in a separate manual step.

This is the approach usually recommended by AdaCore.  The reason you
want a traceback is because "something's wrong".  And that might
mean that memory has been corrupted.  The symbolic traceback
mechanism is pretty heavy, and therefore more likely to trip
over that corrupted memory.

So the approach mentioned by Stephen above is more robust.
It's also more efficient, because the symbolic traceback
mechanism is not part of your program -- it's in the separate
addr2line program.

- Bob



      parent reply	other threads:[~2009-06-27 17:09 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-26 14:41 addr2line i mingw gcc 4.4.0 björn lundin
2009-06-26 20:56 ` sjw
2009-06-26 21:28   ` björn lundin
2009-06-27  0:00     ` Ludovic Brenta
2009-06-27 11:28       ` Stephen Leake
2009-06-27 12:29         ` Dmitry A. Kazakov
2009-06-27 13:05           ` Ludovic Brenta
2009-06-27 16:24         ` sjw
2009-06-27 18:50           ` björn lundin
2009-06-27 20:49           ` Georg Bauhaus
2009-06-29 21:49             ` Randy Brukardt
2009-06-28 16:20           ` sjw
2009-06-27 17:09         ` Robert A Duff [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox