comp.lang.ada
 help / color / mirror / Atom feed
From: Ludovic Brenta <ludovic@ludovic-brenta.org>
Subject: Re: addr2line i mingw gcc 4.4.0
Date: Fri, 26 Jun 2009 17:00:03 -0700 (PDT)
Date: 2009-06-26T17:00:03-07:00	[thread overview]
Message-ID: <550a535e-eef9-4317-ac38-6ae915df6eed@r16g2000vbn.googlegroups.com> (raw)
In-Reply-To: 86f46e08-56e0-4cc1-89be-93af2e7cad31@q37g2000vbi.googlegroups.com

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.

HTH

--
Ludovic Brenta.



  reply	other threads:[~2009-06-27  0:00 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 [this message]
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
replies disabled

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