aboutsummaryrefslogtreecommitdiff
path: root/gdb/ChangeLog
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 /gdb/ChangeLog
parentacd6125f01dc9ba76423b7062c26ca16562943cf (diff)
downloadgdb-191849105b95e5ac3a3173547fd77f7b1fc3b283.zip
gdb-191849105b95e5ac3a3173547fd77f7b1fc3b283.tar.gz
gdb-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 'gdb/ChangeLog')
-rw-r--r--gdb/ChangeLog4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 9f9681f..3a4844f 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,7 @@
+2021-01-25 Tom Tromey <tromey@adacore.com>
+
+ * ada-lang.c (resolve_subexp): Handle array context.
+
2021-01-23 Tom Tromey <tom@tromey.com>
PR compile/25575