aboutsummaryrefslogtreecommitdiff
path: root/gdb/ChangeLog
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2019-12-03 13:31:21 -0700
committerTom Tromey <tromey@adacore.com>2019-12-10 08:56:39 -0700
commit6c71eb7d70c3678f595cd8e66d78c9da5bd3ef4e (patch)
tree771eb800267f5ffe7370e3b30962495fe68848d6 /gdb/ChangeLog
parent0a0a05217640d96938b4cd58c9ce01ef5026e15a (diff)
downloadgdb-6c71eb7d70c3678f595cd8e66d78c9da5bd3ef4e.zip
gdb-6c71eb7d70c3678f595cd8e66d78c9da5bd3ef4e.tar.gz
gdb-6c71eb7d70c3678f595cd8e66d78c9da5bd3ef4e.tar.bz2
Normalize Ada ptype to use a single "?"
Sometimes -- notably with unchecked unions -- the Ada "ptype" code will print a "?" or "??" to indicate something unknown. The choice of what was printed was somewhat arbitrary, and in one case, Ada would print an empty string rather than "?". This patch normalizes the Ada code to use "?" rather than an empty string or "??". My reasoning here is that a single question mark is enough to convey unknown-ness. gdb/ChangeLog 2019-12-10 Tom Tromey <tromey@adacore.com> * ada-typeprint.c (print_choices): Use a single "?". (print_variant_part): Print "?" if the discriminant name is not known. gdb/testsuite/ChangeLog 2019-12-10 Tom Tromey <tromey@adacore.com> * gdb.ada/unchecked_union.exp: New file. * gdb.ada/unchecked_union/pck.adb: New file. * gdb.ada/unchecked_union/pck.ads: New file. * gdb.ada/unchecked_union/unchecked_union.adb: New file. * gdb-utils.exp (string_to_regexp): Also quote "?". Change-Id: I3403040780a155ffa2c44c8e6a04ba86bc810e29
Diffstat (limited to 'gdb/ChangeLog')
-rw-r--r--gdb/ChangeLog6
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 98a6285..ac58517 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,9 @@
+2019-12-10 Tom Tromey <tromey@adacore.com>
+
+ * ada-typeprint.c (print_choices): Use a single "?".
+ (print_variant_part): Print "?" if the discriminant name
+ is not known.
+
2019-12-10 George Barrett <bob@bob131.so>
Fix scripted probe breakpoints.