diff options
author | Michael Snyder <msnyder@specifix.com> | 2000-10-30 21:15:56 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@specifix.com> | 2000-10-30 21:15:56 +0000 |
commit | 81dfbb6eaf2af62968128cc2b011aa89b6d821df (patch) | |
tree | 31356fcdbd48e112ad915aeb9dac1094c79c229a /gdb/ax-gdb.c | |
parent | 6743ca20f5cd201a712ec52777765ba9e037bc41 (diff) | |
download | gdb-81dfbb6eaf2af62968128cc2b011aa89b6d821df.tar.gz |
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.
Diffstat (limited to 'gdb/ax-gdb.c')
-rw-r--r-- | gdb/ax-gdb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/ax-gdb.c b/gdb/ax-gdb.c index 2e2d0f23d54..1635364b1c8 100644 --- a/gdb/ax-gdb.c +++ b/gdb/ax-gdb.c @@ -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 |