diff options
author | Tom Tromey <tromey@adacore.com> | 2020-12-14 07:42:23 -0700 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2020-12-14 07:42:23 -0700 |
commit | e26624c669037529816f89ce1b9c78954c389ca1 (patch) | |
tree | e2b683793e2f22b56ce2dac69d4f67eccc21a848 /gdb/ChangeLog | |
parent | a3bdae4ef826f2b59cc475e530b2a4130185cfac (diff) | |
download | fsf-binutils-gdb-e26624c669037529816f89ce1b9c78954c389ca1.zip fsf-binutils-gdb-e26624c669037529816f89ce1b9c78954c389ca1.tar.gz fsf-binutils-gdb-e26624c669037529816f89ce1b9c78954c389ca1.tar.bz2 |
Be more careful when rewriting thick pointer array type
To handle thick pointers with -fgnat-encodings=minimal, gdb will
rewrite the underlying array type to remove the bounds. However, if
the same DWARF type is used both for a thick pointer and for an
ordinary array, this will have the side effect of removing the bounds
from the array. This breaks the printing of objects of this type.
This patch fixes the problem by copying the array type, its range, and
its bounds.
gdb/ChangeLog
2020-12-14 Tom Tromey <tromey@adacore.com>
* dwarf2/read.c (rewrite_array_type): New function.
(quirk_ada_thick_pointer_struct): Use rewrite_array_type.
gdb/testsuite/ChangeLog
2020-12-14 Tom Tromey <tromey@adacore.com>
* gdb.dwarf2/ada-thick-pointer.exp: New file.
Diffstat (limited to 'gdb/ChangeLog')
-rw-r--r-- | gdb/ChangeLog | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 4ac0acc..f87f6df 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 2020-12-14 Tom Tromey <tromey@adacore.com> + * dwarf2/read.c (rewrite_array_type): New function. + (quirk_ada_thick_pointer_struct): Use rewrite_array_type. + +2020-12-14 Tom Tromey <tromey@adacore.com> + * valarith.c (fixed_point_binop): Call error on division by zero. 2020-12-13 Tom Tromey <tom@tromey.com> |