public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [pushed] Fix comment in ada-typeprint.c
@ 2020-03-11 14:31 Tom Tromey
  0 siblings, 0 replies; only message in thread
From: Tom Tromey @ 2020-03-11 14:31 UTC (permalink / raw)
  To: gdb-patches; +Cc: Tom Tromey

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       | 4 ++++
 gdb/ada-typeprint.c | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/gdb/ada-typeprint.c b/gdb/ada-typeprint.c
index db4634c0f3b..9f0ac259a16 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,
-- 
2.21.1


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-03-11 14:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-11 14:31 [pushed] Fix comment in ada-typeprint.c Tom Tromey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).