Approved by Elena Zannoni:
authorFred Fish <fnf@specifix.com>
Sun, 9 Dec 2001 21:45:26 +0000 (21:45 +0000)
committerFred Fish <fnf@specifix.com>
Sun, 9 Dec 2001 21:45:26 +0000 (21:45 +0000)
2001-12-09  Fred Fish  <fnf@redhat.com>
* mdebugread.c (cross_ref): Pass TYPE_FLAG_STUB to init_type()
rather than setting it after the type is created.

gdb/ChangeLog
gdb/mdebugread.c

index e226ad8b74794208c7b698da813ab81a20490fcd..e96158f783cbbdf49a6cc5bbd4c9f8861d1be7b2 100644 (file)
@@ -1,3 +1,8 @@
+2001-12-09  Fred Fish  <fnf@redhat.com>
+
+       * 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  <ezannoni@redhat.com>
 
        * config/rs6000/tm-rs6000.h (STAB_REG_TO_REGNUM): Remove
index c9e3490a5c53821a6409b29697bf63ccc4dc292d..13c0417f134f3c3d074171bccfc3e61c403810c9 100644 (file)
@@ -4234,8 +4234,7 @@ cross_ref (int fd, union aux_ext *ax, struct type **tpp, enum type_code type_cod
   if (rf == -1)
     {
       *pname = "<undefined>";
-      *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;
     }