Strip interface tags from visible fields
authorJerome Guitton <guitton@adacore.com>
Thu, 29 Nov 2012 16:29:54 +0000 (16:29 +0000)
committerJerome Guitton <guitton@adacore.com>
Thu, 29 Nov 2012 16:29:54 +0000 (16:29 +0000)
commitac4a2da45da0729c656d0d7d9fca5b661ba69fcd
treea27fdc3005337b3b214682394fd1af28961370e2
parentb50d69b5aa88f7d46a360d4d4a5b088f3370ad9d
Strip interface tags from visible fields

The following Ada type:

   type Circle is new Shape and Drawable with record
        Center : Point;
        Radius : Natural;
   end record;

...is displayed as follow in GDB:

 (gdb) ptype circle
 type = new classes.shape with record
     V51s: ada.tags.interface_tag;
     center: classes.point;
     radius: natural;
 end record

V51s is an internal field that is of no interest for the user. It should
not be displayed.

gdb/ChangeLog:

* ada-lang.c (ada_is_interface_tag): New function.
(ada_is_ignored_field): Add interface tags to the list
of ignored fields.
gdb/ChangeLog
gdb/ada-lang.c