This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[patch] s/abort/gdb_assert/ in gnu-v3-abi.c
- To: Daniel Berlin <dan at cgsoftware dot com>, Jim Blandy <jimb at cygnus dot com>
- Subject: [patch] s/abort/gdb_assert/ in gnu-v3-abi.c
- From: Andrew Cagney <ac131313 at cygnus dot com>
- Date: Thu, 07 Jun 2001 10:49:09 -0400
- Cc: GDB Patches <gdb-patches at sourceware dot cygnus dot com>
[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;