From: sjw <simon.j.wright@mac.com>
Subject: Re: addr2line i mingw gcc 4.4.0
Date: Sat, 27 Jun 2009 09:24:06 -0700 (PDT)
Date: 2009-06-27T09:24:06-07:00 [thread overview]
Message-ID: <ff1ee3b1-c550-4b92-9ed3-874f8dba11a8@g6g2000vbr.googlegroups.com> (raw)
In-Reply-To: uab3tkja7.fsf@stephe-leake.org
On Jun 27, 12:28 pm, Stephen Leake <stephen_le...@stephe-leake.org>
wrote:
> Ludovic Brenta <ludo...@ludovic-brenta.org> writes:
...
> > So, I think you can have symbolic tracebacks in mingw in one of two
> > ways: patch binutils to build libaddr2line.a then link libgnat against
> > it; or patch libgnat to use the same method as on Debian.
>
> 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.
>
> I use this approach. It reduces the amount of output significantly;
> there are many times that a traceback is generated by I don't want to
> peruse it.
>
> Ludovic's approach simply automates this.
On Darwin, there's a native program atos which does the same as
addr2line.
If your target is VxWorks symbolic tracebacks don't work at all; you
have to use addr2line (well, in VxWorks 5 executables are relocatable
but stack addresses are absolute; so you actually use a wrapper
{powerpc}-wrs-vxworks-vxaddr2line which works by referencing the
runtime address of adainit to its offset in the executable).
next prev parent reply other threads:[~2009-06-27 16:24 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 [this message]
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
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox