From 22eb6048e43c9efaace84a2b759e3312655cde2b Mon Sep 17 00:00:00 2001 From: fnf Date: Sun, 9 Dec 2001 21:45:26 +0000 Subject: [PATCH] Approved by Elena Zannoni: 2001-12-09 Fred Fish * mdebugread.c (cross_ref): Pass TYPE_FLAG_STUB to init_type() rather than setting it after the type is created. --- gdb/ChangeLog | 5 +++++ gdb/mdebugread.c | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index e226ad8b74..e96158f783 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2001-12-09 Fred Fish + + * mdebugread.c (cross_ref): Pass TYPE_FLAG_STUB to init_type() + rather than setting it after the type is created. + 2001-12-09 Elena Zannoni * config/rs6000/tm-rs6000.h (STAB_REG_TO_REGNUM): Remove diff --git a/gdb/mdebugread.c b/gdb/mdebugread.c index c9e3490a5c..13c0417f13 100644 --- a/gdb/mdebugread.c +++ b/gdb/mdebugread.c @@ -4234,8 +4234,7 @@ cross_ref (int fd, union aux_ext *ax, struct type **tpp, enum type_code type_cod if (rf == -1) { *pname = ""; - *tpp = init_type (type_code, 0, 0, (char *) NULL, current_objfile); - TYPE_FLAGS (*tpp) |= TYPE_FLAG_STUB; + *tpp = init_type (type_code, 0, TYPE_FLAG_STUB, (char *) NULL, current_objfile); return result; } -- 2.11.0