binutils-gdb/gdb/python
Tom Tromey 67470e9d8b 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.
2021-06-25 08:07:21 -06:00
..
lib/gdb gdb: fix python/lib/gdb/__init__.py formatting 2021-06-22 15:07:50 -04:00
py-all-events.def Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
py-arch.c gdb: delay python initialisation until gdbpy_finish_initialization 2021-04-28 09:56:20 +01:00
py-auto-load.c gdb: remove unnecessary lookup_cmd when deprecating commands 2021-05-27 14:00:07 -04:00
py-block.c gdb: delay python initialisation until gdbpy_finish_initialization 2021-04-28 09:56:20 +01:00
py-bpevent.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
py-breakpoint.c gdb: remove iterate_over_breakpoints function 2021-05-27 14:58:37 -04:00
py-cmd.c gdb: add cmd_list_element::is_prefix 2021-05-17 14:01:26 -04:00
py-continueevent.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
py-event-types.def Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
py-event.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
py-event.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
py-events.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
py-evtregistry.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
py-evts.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
py-exitedevent.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
py-finishbreakpoint.c gdb: remove iterate_over_breakpoints function 2021-05-27 14:58:37 -04:00
py-frame.c gdb/python: add PendingFrame.level and Frame.level methods 2021-06-21 16:20:08 +01:00
py-framefilter.c gdb: fix some indentation issues 2021-05-27 15:01:28 -04:00
py-function.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
py-gdb-readline.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
py-inferior.c gdb/python: move PyLong_From* calls into py-utils.c 2021-06-21 16:09:06 +01:00
py-infevents.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
py-infthread.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
py-instruction.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
py-instruction.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
py-lazy-string.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
py-linetable.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
py-newobjfileevent.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
py-objfile.c gdb: delay python initialisation until gdbpy_finish_initialization 2021-04-28 09:56:20 +01:00
py-param.c gdb/python: use return values of add_setshow functions in add_setshow_generic 2021-05-27 14:00:07 -04:00
py-prettyprint.c gdb: fix some indentation issues 2021-05-27 15:01:28 -04:00
py-progspace.c gdb: delay python initialisation until gdbpy_finish_initialization 2021-04-28 09:56:20 +01:00
py-record-btrace.c gdb: make some variables static 2021-01-20 20:55:05 -05:00
py-record-btrace.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
py-record-full.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
py-record-full.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
py-record.c gdb: make some variables static 2021-01-20 20:55:05 -05:00
py-record.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
py-ref.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
py-registers.c gdb: delay python initialisation until gdbpy_finish_initialization 2021-04-28 09:56:20 +01:00
py-signalevent.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
py-stopevent.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
py-stopevent.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
py-symbol.c Restore gdb.SYMBOL_LABEL_DOMAIN constant 2021-06-03 14:56:55 +02:00
py-symtab.c gdb: delay python initialisation until gdbpy_finish_initialization 2021-04-28 09:56:20 +01:00
py-threadevent.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
py-tui.c Forward mouse click to python TUI window 2021-06-04 16:18:10 +02:00
py-type.c Decode Ada types in Python layer 2021-06-25 08:07:21 -06:00
py-unwind.c gdb/python: print name of unwinder that claimed frame in debug message 2021-06-22 14:47:10 -04:00
py-utils.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
py-value.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
py-varobj.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
py-xmethods.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
python-config.py gdb: re-format Python files using black 21.4b0 2021-05-07 10:56:20 -04:00
python-internal.h gdb: make gdbpy_parse_command_name return a unique_xmalloc_ptr 2021-05-12 13:50:09 -04:00
python.c gdb: make add_com_alias accept target as a cmd_list_element 2021-05-27 14:00:07 -04:00
python.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00