Weimin Pan bf2977b5f3 Fix failure to find member of a typedef base class
The test case below demonstrates the problem, as described in this PR's Comment 5:

typedef struct {
        int x;
} A;

struct C : A {
        int y;
};

int main()
{
        C c;
        return 55;
}

$ gdb a.out
(gdb) ptype C::x
Internal error: non-aggregate type to value_struct_elt_for_reference

In value_struct_elt_for_reference(), need to call check_typedef() on
the aggregate type to handle the case of *curtype being ptr->typedef.

Tested on x86_64-linux. No regressions.
2018-06-18 21:31:55 +00:00
..
2018-04-30 11:25:31 -06:00
2018-03-23 11:58:32 -07:00
2018-03-23 11:58:32 -07:00
2018-03-23 11:58:32 -07:00
2018-03-23 11:58:32 -07:00
2018-06-01 10:19:55 -06:00
2018-03-07 14:29:19 +01:00
2018-03-07 14:29:19 +01:00