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

Christian Biesinger via Gdb-patches
2021-06-18T16:26:48Z

On Fri, Jun 18, 2021 at 10:09 AM Tom Tromey <tromey@adacore.com> wrote:
>
> >> + /* 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.

Oops, yes, I got myself confused. But even so, should it respect the
"demangle" setting?

Christian