diff options
author | Joel Brobecker <brobecker@gnat.com> | 2010-04-27 21:01:45 +0000 |
---|---|---|
committer | Joel Brobecker <brobecker@gnat.com> | 2010-04-27 21:01:45 +0000 |
commit | d09ce91e4f69a3cd451e35fc7a6476561c4d68c8 (patch) | |
tree | d1a07f3f0049f8e0d0fa456f27c384cfaa494673 /gdb/gdbtypes.h | |
parent | 02aeec7bde8ec8a04d14a5637e75f1c6ab899e23 (diff) | |
download | binutils-gdb-d09ce91e4f69a3cd451e35fc7a6476561c4d68c8.tar.gz |
Document special use of target_type field in Ada structs.
This is a comment that I wrote not too long ago, I believe, as part
of a submission process, and somehow did not get to commit. It explains
how the TYPE_TARGET_TYPE is used by Ada in the case of dynamic records/
unions.
2010-04-24 Joel Brobecker <brobecker@adacore.com>
* gdbtypes.h (struct main_type): Expand comment about target_type
field.
Diffstat (limited to 'gdb/gdbtypes.h')
-rw-r--r-- | gdb/gdbtypes.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/gdbtypes.h b/gdb/gdbtypes.h index 76716db3781..4d26f5a3bf7 100644 --- a/gdb/gdbtypes.h +++ b/gdb/gdbtypes.h @@ -459,6 +459,9 @@ struct main_type For a function or method type, describes the type of the return value. For a range type, describes the type of the full range. For a complex type, describes the type of each coordinate. + For a special record or union type encoding a dynamic-sized type + in GNAT, a memoized pointer to a corresponding static version of + the type. Unused otherwise. */ struct type *target_type; |