aboutsummaryrefslogtreecommitdiff
path: root/gdb/ada-lang.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2024-08-23 13:08:42 -0600
committerTom Tromey <tromey@adacore.com>2025-03-06 14:17:17 -0700
commitcabd5456c78f431517b4c76ed93feff1608e0cf0 (patch)
tree412888aad636bc117b902c421a6d7b9d996c4445 /gdb/ada-lang.c
parent56ddbf72843c0fa1badd68e71c5ba076f626c5c5 (diff)
downloadbinutils-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