aboutsummaryrefslogtreecommitdiff
path: root/libiberty/pex-unix.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2021-01-25 07:38:21 -0700
committerTom Tromey <tromey@adacore.com>2021-01-25 07:38:21 -0700
commit191849105b95e5ac3a3173547fd77f7b1fc3b283 (patch)
treeb0bbfb1aff7d6e137db82311e09c63d2114f8947 /libiberty/pex-unix.c
parentacd6125f01dc9ba76423b7062c26ca16562943cf (diff)
downloadbinutils-191849105b95e5ac3a3173547fd77f7b1fc3b283.zip
binutils-191849105b95e5ac3a3173547fd77f7b1fc3b283.tar.gz
binutils-191849105b95e5ac3a3173547fd77f7b1fc3b283.tar.bz2
Specially handle array contexts in Ada expression resolution
A user noticed that the Ada expression code in gdb did not automatically disambiguate an enumerator in an array context. That is, an expression like "print array(enumerator)" is not ambiguous, even if "enumerator" is declared in multiple enumerations, because the correct one can be found by examining the array's index type. This patch changes the Ada expression resolution code to handle this case. gdb/ChangeLog 2021-01-25 Tom Tromey <tromey@adacore.com> * ada-lang.c (resolve_subexp): Handle array context. gdb/testsuite/ChangeLog 2021-01-25 Tom Tromey <tromey@adacore.com> * gdb.ada/local-enum.exp: Add enumerator resolution test.
Diffstat (limited to 'libiberty/pex-unix.c')
0 files changed, 0 insertions, 0 deletions