aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2020-03-11 08:29:51 -0600
committerTom Tromey <tromey@adacore.com>2020-03-11 08:29:51 -0600
commite7a82140af00e632f06e27d0ec9ad1f4fb704d92 (patch)
treedcbd1dc3ec396c54b3c0f89b0b5d9eafb27fc837
parent976862ed563047be58effc4b02fe75ed064f77b7 (diff)
downloadgdb-e7a82140af00e632f06e27d0ec9ad1f4fb704d92.zip
gdb-e7a82140af00e632f06e27d0ec9ad1f4fb704d92.tar.gz
gdb-e7a82140af00e632f06e27d0ec9ad1f4fb704d92.tar.bz2
Fix comment in ada-typeprint.c
A comment in ada-typeprint.c mentions the Unchecked_Variant pragma. However, this does not exist, and the comment should actually mention Unchecked_Union. gdb/ChangeLog 2020-03-11 Tom Tromey <tromey@adacore.com> * ada-typeprint.c (print_choices): Fix comment.
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/ada-typeprint.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 5e8fb71..465bef0 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,7 @@
+2020-03-11 Tom Tromey <tromey@adacore.com>
+
+ * ada-typeprint.c (print_choices): Fix comment.
+
2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
* buildsyms.c (buildsym_compunit::record_line): Avoid accessing
diff --git a/gdb/ada-typeprint.c b/gdb/ada-typeprint.c
index db4634c..9f0ac25 100644
--- a/gdb/ada-typeprint.c
+++ b/gdb/ada-typeprint.c
@@ -456,7 +456,7 @@ print_array_type (struct type *type, struct ui_file *stream, int show,
values. Return non-zero if the field is an encoding of
discriminant values, as in a standard variant record, and 0 if the
field is not so encoded (as happens with single-component variants
- in types annotated with pragma Unchecked_Variant). */
+ in types annotated with pragma Unchecked_Union). */
static int
print_choices (struct type *type, int field_num, struct ui_file *stream,