aboutsummaryrefslogtreecommitdiff
path: root/gdb/ChangeLog
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2020-12-14 07:42:23 -0700
committerTom Tromey <tromey@adacore.com>2020-12-14 07:42:23 -0700
commite26624c669037529816f89ce1b9c78954c389ca1 (patch)
treee2b683793e2f22b56ce2dac69d4f67eccc21a848 /gdb/ChangeLog
parenta3bdae4ef826f2b59cc475e530b2a4130185cfac (diff)
downloadgdb-e26624c669037529816f89ce1b9c78954c389ca1.zip
gdb-e26624c669037529816f89ce1b9c78954c389ca1.tar.gz
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/ChangeLog5
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>