Demangling C++ global initializers and destructors

Andreas Schwab schwab@suse.de
Fri Feb 28 21:12:00 GMT 2003


Robert Schiele <rschiele@uni-mannheim.de> writes:

|> 2. How should the demangled representation look like?
|>    "_GLOBAL__I_HashBasics::hashtablesize(unsigned)" or some more
|>    readable format?

There is already code in the demangler that detects _GLOBAL_$[DI]$ (where
$ is a member of cplus_markers) and transforms that into "global
(de|con)structor keyed to ...".  I suspect that this just hasn't been
updated yet to the new mangling scheme.

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."



More information about the Binutils mailing list