diff options
author | Tom Tromey <tromey@adacore.com> | 2021-06-25 08:01:15 -0600 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2021-06-25 08:07:21 -0600 |
commit | 67470e9d8be180344494635dcef34e054938bfb8 (patch) | |
tree | 7477aae623d62721bf9cee5b2ca2d4cf6bd4c7e3 /gdb/ChangeLog | |
parent | 8a3df5acae7ad08f691b449c7e6f8e38fb1b8cb1 (diff) | |
download | gdb-67470e9d8be180344494635dcef34e054938bfb8.zip gdb-67470e9d8be180344494635dcef34e054938bfb8.tar.gz gdb-67470e9d8be180344494635dcef34e054938bfb8.tar.bz2 |
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.
Diffstat (limited to 'gdb/ChangeLog')
-rw-r--r-- | gdb/ChangeLog | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 9d56f1c..c973f43 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,9 @@ 2021-06-25 Tom Tromey <tromey@adacore.com> + * python/py-type.c (typy_get_name): Decode an Ada type name. + +2021-06-25 Tom Tromey <tromey@adacore.com> + * ada-lang.c (ada_decode): Add wrap parameter. * ada-lang.h (ada_decode): Add wrap parameter. |