Fix comment in ada-typeprint.c
authorTom Tromey <tromey@adacore.com>
Wed, 11 Mar 2020 14:29:51 +0000 (08:29 -0600)
committerTom Tromey <tromey@adacore.com>
Wed, 11 Mar 2020 14:29:51 +0000 (08:29 -0600)
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.

gdb/ChangeLog
gdb/ada-typeprint.c

index 5e8fb71cd4d5508d641fb97a4ce0d2fcac38282e..465bef0d29f5fe0f31d9c15b3f9c415335f1ef37 100644 (file)
@@ -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
index db4634c0f3b01cf402e444b7e83afde3dd9e8e66..9f0ac259a163c9fbbd66002295f4d0f7e2455775 100644 (file)
@@ -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,
This page took 0.026983 seconds and 4 git commands to generate.