Various fixes to improve C++ debugging. See ChangeLog.

This commit is contained in:
Per Bothner
1992-07-10 03:56:17 +00:00
parent 7eec00ed56
commit 5c5b5d4b0e
5 changed files with 104 additions and 7 deletions

View File

@@ -611,6 +611,10 @@ lookup_struct_elt_type (type, name, noerr)
{
int i;
if (TYPE_CODE (type) == TYPE_CODE_PTR ||
TYPE_CODE (type) == TYPE_CODE_REF)
type = TYPE_TARGET_TYPE (type);
if (TYPE_CODE (type) != TYPE_CODE_STRUCT &&
TYPE_CODE (type) != TYPE_CODE_UNION)
{