[Ada] Fix comment in ada-lang.c:ada_is_ignored_field
Fix a comment that completly mistunderstood the code... gdb/ChangeLog: * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
This commit is contained in:
parent
2ad01556c7
commit
ffde82bff0
|
@ -1,3 +1,7 @@
|
||||||
|
2012-02-29 Joel Brobecker <brobecker@adacore.com>
|
||||||
|
|
||||||
|
* ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
|
||||||
|
|
||||||
2012-02-29 Joel Brobecker <brobecker@adacore.com>
|
2012-02-29 Joel Brobecker <brobecker@adacore.com>
|
||||||
|
|
||||||
* ada-lang.c (ada_lookup_symbol_list): Only cache the result of
|
* ada-lang.c (ada_lookup_symbol_list): Only cache the result of
|
||||||
|
|
|
@ -5893,8 +5893,13 @@ ada_is_ignored_field (struct type *type, int field_num)
|
||||||
if (name == NULL)
|
if (name == NULL)
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
/* A field named "_parent" is internally generated by GNAT for
|
/* Normally, fields whose name start with an underscore ("_")
|
||||||
tagged types, and should not be printed either. */
|
are fields that have been internally generated by the compiler,
|
||||||
|
and thus should not be printed. The "_parent" field is special,
|
||||||
|
however: This is a field internally generated by the compiler
|
||||||
|
for tagged types, and it contains the components inherited from
|
||||||
|
the parent type. This field should not be printed as is, but
|
||||||
|
should not be ignored either. */
|
||||||
if (name[0] == '_' && strncmp (name, "_parent", 7) != 0)
|
if (name[0] == '_' && strncmp (name, "_parent", 7) != 0)
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue