diff options
author | Tom Tromey <tromey@adacore.com> | 2024-08-23 13:08:42 -0600 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2025-03-06 14:17:17 -0700 |
commit | cabd5456c78f431517b4c76ed93feff1608e0cf0 (patch) | |
tree | 412888aad636bc117b902c421a6d7b9d996c4445 /gdb/ada-lang.c | |
parent | 56ddbf72843c0fa1badd68e71c5ba076f626c5c5 (diff) | |
download | binutils-cabd5456c78f431517b4c76ed93feff1608e0cf0.zip binutils-cabd5456c78f431517b4c76ed93feff1608e0cf0.tar.gz binutils-cabd5456c78f431517b4c76ed93feff1608e0cf0.tar.bz2 |
Allow unqualified names in Ada tests
Currently, when a type is declared in a subprogram that isn't part of
a package, gdb will give this type a qualified name. E.g., in the
program for gdb.ada/arr_arr.exp:
procedure Foo is
type Array2_First is array (24 .. 26) of Integer;
gdb will name this type 'foo.array2_first'.
However, with some coming changes to GNAT (and with the remainder of
this series applied as well), this will no longer happen. Instead,
such types will be given their local name. IMO this makes more sense
anyway.
This patch updates most of the Ada tests to allow either form in the
spots where it matters. Both are accepted so that the tests continue
to work with older versions of GNAT. (A few tests are handled in
separate patches; this patch only contains the straightforward
changes.)
Diffstat (limited to 'gdb/ada-lang.c')
0 files changed, 0 insertions, 0 deletions