Document special use of target_type field in Ada structs.
authorJoel Brobecker <brobecker@gnat.com>
Tue, 27 Apr 2010 21:01:45 +0000 (21:01 +0000)
committerJoel Brobecker <brobecker@gnat.com>
Tue, 27 Apr 2010 21:01:45 +0000 (21:01 +0000)
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.

gdb/ChangeLog
gdb/gdbtypes.h

index b84aa5d6146ddd451186915db97a94ec45bcdfcc..a80e564fa83bf334b5f5c99587ceacc989bfbd53 100644 (file)
@@ -1,3 +1,8 @@
+2010-04-27  Joel Brobecker  <brobecker@adacore.com>
+
+       * gdbtypes.h (struct main_type): Expand comment about target_type
+       field.
+
 2010-04-27  Joel Brobecker  <brobecker@adacore.com>
 
        * symfile.c (reread_symbols): Also search for file in libraries.
index 76716db3781c04c02869bc0ff5adcb8bf0b55414..4d26f5a3bf7a5e5cd0bbfc2931894650f049b140 100644 (file)
@@ -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;
This page took 0.02992 seconds and 4 git commands to generate.