Re: [PATCH 2/2] Decode Ada types in Python layer

Tom Tromey
2021-06-18T15:09:42Z

>> + /* Ada type names are encoded, but it is better for users to see the
>> + decoded form. */
>> + if (ADA_TYPE_P (type))
>> + {
>> + std::string name = ada_decode (type->name (), false);

Christian> Would type->demangled_name() do the right thing? (And should this
Christian> respect the demangle option, maybe by calling type->print_name()?)

I don't think there is a demangled_name method on type, only on symbol.
It may make sense to add one, though this is really only an issue for
Ada AFAIK.

Tom