aboutsummaryrefslogtreecommitdiff
path: root/gdb/gnu-v3-abi.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2001-06-07 14:51:20 +0000
committerAndrew Cagney <cagney@redhat.com>2001-06-07 14:51:20 +0000
commit3d499020f6cc7089fa629cb734fab49f888e67c6 (patch)
tree0d92940a98be84620f9d0baec426b82a3b82210e /gdb/gnu-v3-abi.c
parentcc78d0afbed9036ebf098b1e1982626d6c1c02b7 (diff)
downloadgdb-3d499020f6cc7089fa629cb734fab49f888e67c6.zip
gdb-3d499020f6cc7089fa629cb734fab49f888e67c6.tar.gz
gdb-3d499020f6cc7089fa629cb734fab49f888e67c6.tar.bz2
s/abort/gdb_assert/
Diffstat (limited to 'gdb/gnu-v3-abi.c')
-rw-r--r--gdb/gnu-v3-abi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/gnu-v3-abi.c b/gdb/gnu-v3-abi.c
index 015bead..d9da17c 100644
--- a/gdb/gnu-v3-abi.c
+++ b/gdb/gnu-v3-abi.c
@@ -23,6 +23,7 @@
#include "value.h"
#include "cp-abi.h"
#include "demangle.h"
+#include "gdb_assert.h"
static struct cp_abi_ops gnu_v3_abi_ops;
@@ -156,8 +157,7 @@ build_gdb_vtable_type (struct gdbarch *arch)
field++;
/* We assumed in the allocation above that there were four fields. */
- if (field != field_list + 4)
- abort ();
+ gdb_assert (field == (field_list + 4));
t = init_type (TYPE_CODE_STRUCT, offset, 0, 0, 0);
TYPE_NFIELDS (t) = field - field_list;