From: Kent E Y. <yo...@us...> - 2002-06-07 17:39:04
|
Tom, Works great, thanks for the quick response... Kent This patch should fix the problem (patch -p1 < typedef.patch). It adds 2 check_typedef() calls which make sure that the type returned from gen_field_ref_fn() reflects the base type. Regards, Tom Zanussi <za...@us...> IBM Linux Technology Center/RAS --- dpcc-1.0.0/c-probe-expr.c Mon May 13 09:49:06 2002 +++ dpcc-1.0.0.typedefed.fix/c-probe-expr.c Thu Jun 6 15:15:33 2002 @@ -122,8 +122,8 @@ // fill in the return kind *out_kind = lvalue_memory; // fill in the temp return value with the result - set_cs_datatype(&tmp_datatype, TYPE_FIELD_TYPE (type, i)); - map_gdb_to_ast_type(&tmp_datatype, TYPE_FIELD_TYPE(type, i)); + set_cs_datatype(&tmp_datatype, check_typedef(TYPE_FIELD_TYPE (type, i))); + map_gdb_to_ast_type(&tmp_datatype, check_typedef(TYPE_FIELD_TYPE(type, i))); return &tmp_datatype; } |