This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Improvements in binutils by implementing libaddr2line.a
- From: "Massimo" <mbo dot massimo at tiscali dot it>
- To: "'Nick Clifton'" <nickc at redhat dot com>
- Cc: "'binutils'" <binutils at sourceware dot org>
- Date: Sun, 9 Sep 2007 16:04:18 +0200
- Subject: Re: Improvements in binutils by implementing libaddr2line.a
- References: <000901c7ddc8$cc5a0dc0$0300a8c0@p4> <46D831A5.6060402@redhat.com> <000001c7ed4e$4e9ef220$0300a8c0@p4> <46E15B32.3050807@redhat.com>
Hi Nick
Using bfd_find_nearest_line() function and with a simple introduction of the
demangle of the name used by the language (C,C++,ADA,etc...) make useless
the use of the libaddr2line library proposed by me.
I didn't known the existence of this function in the bfd library.
I have defined a new target in the GCC compiler (principal for the ADA
language) and examining the source files of the ada part, in order to adapt
these files for the new environment, I noted the use, for particular target,
of the libaddr2line library but I don't have see this library in the
binutils so I proposed to insert it in the binutils (in binutils is already
present addr2line program).
I don't know why some GCC target (GNAT part) use libaddr2line while, with
minor modification, it is possible to use the bfd library.
The GCC documentation report that the GNU binutils are necessary in some
circumstances, optional in others.
May be the GCC team doesn't want to make GCC generation dependent on the
binutils.
Thank you for your patience and your time spent responding of my mail.
Bye
Massimo