[PATCH 0/9] Fix most -fgnat-encodings=minimal failures

Tom Tromey
2020-09-30T20:06:38Z

GNAT has two debuginfo modes -- the default, which is to emit "GNAT
encodings", and -fgnat-encodings=minimal, which emits something closer
to pure DWARF.

Historically gdb has only handled GNAT encodings. This patch series
brings gdb most of the way to handling -fgnat-encodings=minimal. The
remaining issues are going to require some patches to GNAT and gdb; my
plan is to only land the gdb changes once the GNAT changes have gone
in.

Patches #2 - #9 were all reviewed internally by Joel. However, they
aren't all purely Ada-specific. (Patch #1 is new, written while I was
prepping this series -- see the comments there.)

For gdb itself, the benefit of these changes is that with
minimal-encodings, the Ada type system works more like the rest of
gdb. For users the main benefit is that the Python API works more
nicely.

Let me know what you think,
Tom