From 624456be75030b1aab0f79da73a27d73d391b868 Mon Sep 17 00:00:00 2001 From: Kung Hsu Date: Fri, 12 Nov 1993 19:21:13 +0000 Subject: [PATCH] Modified Files: gdbtypes.c ChangeLog * gdbtypes.c (lookup_struct_elt_type): Handle type ref or pointer to struct/union case. (fix pr3857) --- gdb/ChangeLog | 5 +++++ gdb/gdbtypes.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 1c857f8c32..46a58451c2 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +Fri Nov 12 11:18:02 1993 Kung Hsu (kung@cirdan.cygnus.com) + + * gdbtypes.c (lookup_struct_elt_type): Handle type ref or pointer + to struct/union case. + Fri Nov 12 10:39:31 1993 Stu Grossman (grossman at cygnus.com) * coff-solib.c (coff_solib_add): Cast result of alloca(). diff --git a/gdb/gdbtypes.c b/gdb/gdbtypes.c index 233cb7f77d..473aac4eaa 100644 --- a/gdb/gdbtypes.c +++ b/gdb/gdbtypes.c @@ -685,7 +685,7 @@ lookup_struct_elt_type (type, name, noerr) { int i; - if (TYPE_CODE (type) == TYPE_CODE_PTR || + while (TYPE_CODE (type) == TYPE_CODE_PTR || TYPE_CODE (type) == TYPE_CODE_REF) type = TYPE_TARGET_TYPE (type);