2000-10-19 Josef Ezra <jezra@emc.com>

* ax-gdb.c (gen_struct_ref): while generating data code, cases of
      "collect p1->p2->data" where not covered if p2 is a 'typedefed'
      type. this simple fix should forward the type pointer to the real
      type.
This commit is contained in:
Michael Snyder 2000-10-30 21:15:56 +00:00
parent f9e0997d4c
commit e8860ec2cf
2 changed files with 8 additions and 1 deletions

View file

@ -228,6 +228,13 @@ Fri Oct 20 19:08:47 2000 Andrew Cagney <cagney@b1.cygnus.com>
* MAINTAINERS: Add Fred Fish to Blanket Write Privs list.
2000-10-19 Josef Ezra <jezra@emc.com>
* ax-gdb.c (gen_struct_ref): while generating data code, cases of
"collect p1->p2->data" where not covered if p2 is a 'typedefed'
type. this simple fix should forward the type pointer to the real
type.
2000-10-19 Kevin Buettner <kevinb@redhat.com>
* solib.c (LM_ADDR, LM_NEXT, LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY,

View 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