]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Handle __XVL fields in Ada type printing
authorTom Tromey <tromey@adacore.com>
Wed, 4 Nov 2020 16:17:58 +0000 (09:17 -0700)
committerTom Tromey <tromey@adacore.com>
Wed, 4 Nov 2020 16:17:58 +0000 (09:17 -0700)
commit9c91c7259122af572d50e5422c982201e4003d04
tree06a00b97ea01afc3834d21bf6f14c5d94557dea7
parent8d9fd3a107c4ae251a4cbcfc995115334e0cf84e
Handle __XVL fields in Ada type printing

Sometimes the Ada compiler will emit an "__XVL" name for a field.  The
Ada compiler describes:

--  Second, the variable-length fields themselves are represented by
--  replacing the type by a special access type. The designated type of
--  this access type is the original variable-length type, and the fact
--  that this field has been transformed in this way is signalled by
--  encoding the field name as:

--    field___XVL

Currently gdb describes such fields as having "access" type, but this
is inaccurate.  This patch changes gdb to avoid printing "access" in
this case.

gdb/ChangeLog
2020-11-04  Tom Tromey  <tromey@adacore.com>

* ada-typeprint.c (ada_print_type): Handle __XVL fields.

gdb/testsuite/ChangeLog
2020-11-04  Tom Tromey  <tromey@adacore.com>

* gdb.ada/funcall_ref.exp: Update.
* gdb.ada/var_rec_arr.exp: Update.
gdb/ChangeLog
gdb/ada-typeprint.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.ada/funcall_ref.exp
gdb/testsuite/gdb.ada/var_rec_arr.exp