This is the mail archive of the archer@sourceware.org mailing list for the Archer project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]