]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdb/ChangeLog
Decode Ada types in Python layer
authorTom Tromey <tromey@adacore.com>
Fri, 25 Jun 2021 14:01:15 +0000 (08:01 -0600)
committerTom Tromey <tromey@adacore.com>
Fri, 25 Jun 2021 14:07:21 +0000 (08:07 -0600)
commit67470e9d8be180344494635dcef34e054938bfb8
tree7477aae623d62721bf9cee5b2ca2d4cf6bd4c7e3
parent8a3df5acae7ad08f691b449c7e6f8e38fb1b8cb1
Decode Ada types in Python layer

GNAT emits encoded type names, but these aren't usually of interest to
users.  The Ada language code in gdb hides this oddity -- but the
Python layer does not.  This patch changes the Python code to use the
decoded Ada type name, when appropriate.

I looked at decoding Ada type names during construction, as that would
be cleaner.  However, the Ada support in gdb relies on the encodings
at various points, so this isn't really doable right now.

2021-06-25  Tom Tromey  <tromey@adacore.com>

* python/py-type.c (typy_get_name): Decode an Ada type name.

gdb/testsuite/ChangeLog
2021-06-25  Tom Tromey  <tromey@adacore.com>

* gdb.ada/py_range.exp: Add type name test cases.
gdb/ChangeLog
gdb/python/py-type.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.ada/py_range.exp