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

Tom Tromey
2021-06-22T16:56:33Z

>> 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.

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

I don't think that would be all that useful really.
For one thing, that would mean some user option affects the python
API -- this can already happen, but it's a pain when it does.
If the encoded Ada name is needed, it would be better to add a separate
method. But, I don't think it's needed. It's just an artifact of the
way that GNAT worked around DWARF limitations in a particular era (an
ongoing era in some ways).

Tom