This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[patch] s/abort/gdb_assert/ in gnu-v3-abi.c


[some people are going to think they are seeing double, I forgot to cc 
the list]

	Andrew
2001-06-07  Andrew Cagney  <ac131313@redhat.com>
 
 	* gnu-v3-abi.c (build_gdb_vtable_type): Replace abort() with
 	gdb_assert().
 
Index: gnu-v3-abi.c
===================================================================
RCS file: /cvs/src/src/gdb/gnu-v3-abi.c,v
retrieving revision 1.2
diff -p -r1.2 gnu-v3-abi.c
*** gnu-v3-abi.c	2001/06/01 22:22:25	1.2
--- gnu-v3-abi.c	2001/06/07 14:42:36
*************** build_gdb_vtable_type (struct gdbarch *a
*** 156,163 ****
    field++;
  
    /* We assumed in the allocation above that there were four fields.  */
!   if (field != field_list + 4)
!     abort ();
  
    t = init_type (TYPE_CODE_STRUCT, offset, 0, 0, 0);
    TYPE_NFIELDS (t) = field - field_list;
--- 156,162 ----
    field++;
  
    /* We assumed in the allocation above that there were four fields.  */
!   gdb_assert (field == (field_list + 4));
  
    t = init_type (TYPE_CODE_STRUCT, offset, 0, 0, 0);
    TYPE_NFIELDS (t) = field - field_list;

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]