This is the mail archive of the
archer@sourceware.org
mailing list for the Archer project.
[charset] [commit] Fix FAILs due to now correctly read-in butunresolved `typedef's.
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: Tom Tromey <tromey at redhat dot com>
- Cc: archer at sourceware dot org
- Date: Thu, 26 Feb 2009 01:19:30 +0100
- Subject: [charset] [commit] Fix FAILs due to now correctly read-in butunresolved `typedef's.
commit fa841eda831c4da1d1feed323afd9d45d4392c51
Regressed on gdb.ada/packed_array.exp.
Due to the change f0fab6ed91c0d78127a52afc1965003efe5e64f5 which started to
create new `struct symbol's even for `typedef's the Ada support is wrongly
missing a CHECK_TYPEDEF.
* ada-lang.c (decode_packed_array_type): Call CHECK_TYPEDEF on the
SYMBOL_TYPE result.
---
gdb/ada-lang.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c
index eee61ef..9ebc67a 100644
--- a/gdb/ada-lang.c
+++ b/gdb/ada-lang.c
@@ -1831,6 +1831,7 @@ decode_packed_array_type (struct type *type)
return NULL;
}
shadow_type = SYMBOL_TYPE (sym);
+ CHECK_TYPEDEF (shadow_type);
if (TYPE_CODE (shadow_type) != TYPE_CODE_ARRAY)
{
--
1.6.0.6