>> A suggestion: Make dwarf_name call the demangler, and then a (new?) a >> function that converts a mangled decl to a human-readable string. In >> any case, the pretty-printer does a lot of stuff that is mostly >> useless for just printing a declaration (translation, wrapping, etc.). >> >> Bonus point if all GNU toolchain program use the same functions for >> demangling and undemagling (because I guess they actually don't, no?) >> >> I guess it cannot be so easy, so I apologize in advance for saying nonsense. > > It makes sense; and I don't think it is as complicated as it might sound.
dwarf_name takes a tree; the demangler takes a mangled name. We don't have mangled names for many of the names we want to enter into the pubnames table. -cary