There will be soon in FSF GDB HEAD: Re: [RFA] c++/12266 (again) [cp_canonicalize_no_typedefs-4.patch] http://sourceware.org/ml/gdb-patches/2011-08/msg00212.html cp_merge_demangle_parse_infos: + NOTE 2: The string from which SRC was parsed must not be freed, since + this function will place pointers to that string into DEST. */ There should be merge of obstacks functions so that it can track the source string. Obstack API needs an update to be 64bit anyway (it is a Fedora patch now) so this could come together when increasing the obstack API version.