From: Stephen Leake <stephen_leake@stephe-leake.org>
Subject: Re: addr2line i mingw gcc 4.4.0
Date: Sat, 27 Jun 2009 07:28:32 -0400
Date: 2009-06-27T07:28:32-04:00 [thread overview]
Message-ID: <uab3tkja7.fsf@stephe-leake.org> (raw)
In-Reply-To: 550a535e-eef9-4317-ac38-6ae915df6eed@r16g2000vbn.googlegroups.com
Ludovic Brenta <ludovic@ludovic-brenta.org> writes:
> Bj�rn Lundin wrote on comp.lang.ada:
>> On 26 Juni, 22:56, sjw <simon.j.wri...@mac.com> wrote:
>>
>> >> Looking in the ACT versions, the file is there, along with other
>> >> lib?.a
>> > Could you just copy from there?
>>
>> Should perhaps mentioned that I already tried that. Links OK but gives
>> Program_Error at runtime,
>> some Access_Violation thingy
>> Also, I would prefer to have it from the gcc I'm using
>
> libaddr2line.a is an invention from AdaCore several years ago; it is a
> patch against the program "addr2line" in certain versions of binutils,
> not GCC. I am not aware of any binary distribution of it apart from
> AdaCore's own. In Debian, I've patched GCC so that it supports
> symbolic tracebacks by calling addr2line in an external process rather
> than using libaddr2line in-process. An early version of this patch
> was in the Ada for Linux Team distribution by J�rgen Pfeiffer for Red
> Hat Linux 6 (in 1999).
>
> 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.
--
-- Stephe
next prev parent reply other threads:[~2009-06-27 11:28 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 [this message]
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
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox