diff options
author | Kung Hsu <kung@cygnus> | 1993-11-12 19:21:13 +0000 |
---|---|---|
committer | Kung Hsu <kung@cygnus> | 1993-11-12 19:21:13 +0000 |
commit | 624456be75030b1aab0f79da73a27d73d391b868 (patch) | |
tree | 34450203aa8d68588227e07a222a6debcac812fb /gdb | |
parent | 9a13e99e206b8c400f1ea65869f90b8500731c4c (diff) | |
download | gdb-624456be75030b1aab0f79da73a27d73d391b868.zip gdb-624456be75030b1aab0f79da73a27d73d391b868.tar.gz gdb-624456be75030b1aab0f79da73a27d73d391b868.tar.bz2 |
Modified Files:
gdbtypes.c ChangeLog
* gdbtypes.c (lookup_struct_elt_type): Handle type ref or pointer
to struct/union case. (fix pr3857)
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/gdbtypes.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 1c857f8..46a5845 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 233cb7f..473aac4 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); |