Demangling of method names and addr2line/c++filt

Ranjit Mathew rmathew@hotmail.com
Sun Feb 16 15:17:00 GMT 2003


Andrew Haley wrote:
>> Ranjit Mathew writes:
> > Either we can spawn c++filt individually for each address (totally
> > gross!), or we can prefix USER_LABEL_PREFIX to symbols given by
> > addr2line before passing it to c++filt (somewhat less gross).
>> Oh, I give up.

Not yet!
As luck would have it, I discovered a predefined GCC preprocessor
macro named __USER_LABEL_PREFIX__ that has been present since at
least 2.95, if not earlier, and that is just what we have been
looking for!
Armed with this, I have posted a patch that adds this prefix to
the symbols generated by addr2line so that they are similar to
those generated by dladdr or addr2name.awk.
(It seems that my patch has gone to the wrong list - awfully sorry
about this lapse!)
Ranjit.
-- 
Ranjit Mathew Email: rmathew AT hotmail DOT com
Bangalore, 
INDIA. Web: http://ranjitmathew.tripod.com/


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /