2000-10-19 Josef Ezra <jezra@emc.com>
[binutils-gdb.git] / gdb / ax-gdb.c
index 2e2d0f23d54c0b6dad96a451a646128d934ecca3..1635364b1c82bba4b2c3796ef713ce93403ef50f 100644 (file)
@@ -1342,7 +1342,7 @@ gen_struct_ref (struct agent_expr *ax, struct axs_value *value, char *field,
       gen_usual_unary (ax, value);
       gen_deref (ax, value);
     }
-  type = value->type;
+  type = check_typedef (value->type);
 
   /* This must yield a structure or a union.  */
   if (TYPE_CODE (type) != TYPE_CODE_STRUCT