From e8860ec2cfe96704af71f6572288562ea46d944b Mon Sep 17 00:00:00 2001 From: Michael Snyder Date: Mon, 30 Oct 2000 21:15:56 +0000 Subject: [PATCH] 2000-10-19 Josef Ezra * 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. --- gdb/ChangeLog | 7 +++++++ gdb/ax-gdb.c | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index c819b1b..d741bc5 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -228,6 +228,13 @@ Fri Oct 20 19:08:47 2000 Andrew Cagney * MAINTAINERS: Add Fred Fish to Blanket Write Privs list. +2000-10-19 Josef Ezra + + * 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 * solib.c (LM_ADDR, LM_NEXT, LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY, diff --git a/gdb/ax-gdb.c b/gdb/ax-gdb.c index 2e2d0f2..1635364 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 -- 2.7.4