diff options
author | Andrew Cagney <cagney@redhat.com> | 2001-06-07 14:51:20 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2001-06-07 14:51:20 +0000 |
commit | 3d499020f6cc7089fa629cb734fab49f888e67c6 (patch) | |
tree | 0d92940a98be84620f9d0baec426b82a3b82210e /gdb | |
parent | cc78d0afbed9036ebf098b1e1982626d6c1c02b7 (diff) | |
download | gdb-3d499020f6cc7089fa629cb734fab49f888e67c6.zip gdb-3d499020f6cc7089fa629cb734fab49f888e67c6.tar.gz gdb-3d499020f6cc7089fa629cb734fab49f888e67c6.tar.bz2 |
s/abort/gdb_assert/
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/gnu-v3-abi.c | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index cdaba47..0f27a90 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2001-06-07 Andrew Cagney <ac131313@redhat.com> + + * gnu-v3-abi.c: Include "gdb_assert.h". + (build_gdb_vtable_type): Replace abort() with gdb_assert(). + 2001-06-06 Jim Blandy <jimb@redhat.com> * cp-abi.h: Rearrange code to put documentation comments above the 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; |