]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Handle Ada extended access thick pointers
authorTom Tromey <tromey@adacore.com>
Fri, 1 Aug 2025 18:46:18 +0000 (12:46 -0600)
committerTom Tromey <tromey@adacore.com>
Fri, 19 Sep 2025 15:41:03 +0000 (09:41 -0600)
commitdf73a19dd89f023a60110523bce69c40907911b2
treef0fdf1af577df54e1b3093a68b72686a471facbc
parentfba8ff16a13254df58a17853ba6b2e5070afc9c0
Handle Ada extended access thick pointers

In Ada, sometimes an array is represented as a "thick" pointer -- a
structure that holds a pointer to the array data and another pointer
to the bounds structure.

A new "extended access" feature is being added to GNAT which changes
the shape of these objects.  With the new feature, the bounds are
inlined into the thick pointer.

This patch changes gdb to understand this new feature.  A test case is
provided; it is written in C to avoid requiring a newer GNAT just for
this test.

Approved-By: Andrew Burgess <aburgess@redhat.com>
gdb/ada-lang.c
gdb/testsuite/gdb.ada/extended-access.c [new file with mode: 0644]
gdb/testsuite/gdb.ada/extended-access.exp [new file with mode: 0644]