Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* RFA: Hopefully last one of these init_types() tweaks
@ 2001-12-09 10:21 Fred Fish
  2001-12-09 11:10 ` Elena Zannoni
  0 siblings, 1 reply; 2+ messages in thread
From: Fred Fish @ 2001-12-09 10:21 UTC (permalink / raw)
  To: gdb-patches; +Cc: fnf

Found one more case where init_types could simply be called with the
right flag bits rather than setting them after the fact.  I believe
this is the last one of these, except for one in java_lookup_class()
that is in code that is commented out and is broken code anyway.

-Fred

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.

Index: mdebugread.c
===================================================================
RCS file: /cvs/cvsfiles/devo/gdb/mdebugread.c,v
retrieving revision 2.88
diff -c -p -r2.88 mdebugread.c
*** mdebugread.c	2001/11/10 03:02:19	2.88
--- mdebugread.c	2001/12/08 21:20:59
*************** cross_ref (int fd, union aux_ext *ax, st
*** 4234,4241 ****
    if (rf == -1)
      {
        *pname = "<undefined>";
!       *tpp = init_type (type_code, 0, 0, (char *) NULL, current_objfile);
!       TYPE_FLAGS (*tpp) |= TYPE_FLAG_STUB;
        return result;
      }
  
--- 4234,4240 ----
    if (rf == -1)
      {
        *pname = "<undefined>";
!       *tpp = init_type (type_code, 0, TYPE_FLAG_STUB, (char *) NULL, current_objfile);
        return result;
      }
  


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-12-09 19:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-12-09 10:21 RFA: Hopefully last one of these init_types() tweaks Fred Fish
2001-12-09 11:10 ` Elena Zannoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox