This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[commit] Document special use of target_type field in Ada structs.
- From: Joel Brobecker <brobecker at adacore dot com>
- To: gdb-patches at sourceware dot org
- Date: Tue, 27 Apr 2010 14:10:29 -0700
- Subject: [commit] Document special use of target_type field in Ada structs.
Hello,
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.
Checked in.
---
gdb/ChangeLog | 5 +++++
gdb/gdbtypes.h | 3 +++
2 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index b84aa5d..a80e564 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
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.
Update comment.
diff --git a/gdb/gdbtypes.h b/gdb/gdbtypes.h
index 76716db..4d26f5a 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;
--
1.6.3.3