c++filt and addr2line [was Re: c++filt causing flashing console windows]
Bryce McKinlay
bryce@mckinlay.net.nz
Wed Sep 10 06:49:00 GMT 2003
On Wednesday, Sep 10, 2003, at 16:40 Pacific/Auckland, Ranjit Mathew
wrote:
> libiberty seems to not have a single uniform license (I
> think Nathanael Nerode was trying to address this). In
> particular, "cp-demangle.c" seems to be under the GPL
> with the following addition:
> ----------------------------- 8< -----------------------------
> In addition to the permissions in the GNU General Public License, the
> Free Software Foundation gives you unlimited permission to link the
> compiled version of this file into combinations with other programs,
> and to distribute those combinations without any restriction coming
> from the use of this file. (The General Public License restrictions
> do apply in other respects; for example, they cover modification of
> the file, and distribution when not linked into a combined
> executable.)
> ----------------------------- 8< -----------------------------
>> IANAL, much less an expert on licenses, but is this
> compatible with libgcj's GPL+exception license?
IANAL either, but I think so. In fact, this license seems to me to be a
clearer way to state much the same intent as the libgcj license.
> So cp_demangle( ) can still be used to save the spawning
> of c++filt, *if the licenses are compatible*. On my
> machine, I have an older c++filt that does not understand
> "style=java".
Right, or alternatively it shouldn't be that hard to write our own
demanger in Java or whatever. Getting the line numbers without BFD is
the hard part. Perhaps if someone can figure out a reasonably platform
(and BFD) independent way of getting at the debugging info at runtime
then we could write a simple DWARF2 interpreter to get us the line
numbers.
Regards
Bryce.
More information about the Java
mailing list