aboutsummaryrefslogtreecommitdiff
path: root/gdb/gnu-v3-abi.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2002-05-12 01:02:58 +0000
committerAndrew Cagney <cagney@redhat.com>2002-05-12 01:02:58 +0000
commit451fbdda72c96478a54f21d5c8a3f14286a4084d (patch)
tree54de4bf9822298dc4e682cc501bb8e01a608edd5 /gdb/gnu-v3-abi.c
parentb91d9153be074e41ebbbf179e27ddabf0cf6ae34 (diff)
downloadfsf-binutils-gdb-451fbdda72c96478a54f21d5c8a3f14286a4084d.zip
fsf-binutils-gdb-451fbdda72c96478a54f21d5c8a3f14286a4084d.tar.gz
fsf-binutils-gdb-451fbdda72c96478a54f21d5c8a3f14286a4084d.tar.bz2
* gdbarch.sh (gdbarch_data): Add gdbarch parameter.
* gdbarch.h, gdbarch.c: Regenerate. * gnu-v3-abi.c: Update copyright. (vtable_address_point_offset): Update. (gnuv3_rtti_type): Update. (gnuv3_baseclass_offset): Update. * solib-svr4.c (svr4_fetch_link_map_offsets): Update. (init_fetch_link_map_offsets): Update. * remote.c (get_remote_state): Update.
Diffstat (limited to 'gdb/gnu-v3-abi.c')
-rw-r--r--gdb/gnu-v3-abi.c15
1 files changed, 10 insertions, 5 deletions
diff --git a/gdb/gnu-v3-abi.c b/gdb/gnu-v3-abi.c
index 720364b..e86af89 100644
--- a/gdb/gnu-v3-abi.c
+++ b/gdb/gnu-v3-abi.c
@@ -1,6 +1,7 @@
/* Abstraction of GNU v3 abi.
Contributed by Jim Blandy <jimb@redhat.com>
- Copyright 2001 Free Software Foundation, Inc.
+
+ Copyright 2001, 2002 Free Software Foundation, Inc.
This file is part of GDB.
@@ -174,7 +175,8 @@ build_gdb_vtable_type (struct gdbarch *arch)
static int
vtable_address_point_offset ()
{
- struct type *vtable_type = gdbarch_data (vtable_type_gdbarch_data);
+ struct type *vtable_type = gdbarch_data (current_gdbarch,
+ vtable_type_gdbarch_data);
return (TYPE_FIELD_BITPOS (vtable_type, vtable_field_virtual_functions)
/ TARGET_CHAR_BIT);
@@ -185,7 +187,8 @@ static struct type *
gnuv3_rtti_type (struct value *value,
int *full_p, int *top_p, int *using_enc_p)
{
- struct type *vtable_type = gdbarch_data (vtable_type_gdbarch_data);
+ struct type *vtable_type = gdbarch_data (current_gdbarch,
+ vtable_type_gdbarch_data);
struct type *value_type = check_typedef (VALUE_TYPE (value));
CORE_ADDR vtable_address;
struct value *vtable;
@@ -293,7 +296,8 @@ gnuv3_virtual_fn_field (struct value **value_p,
struct fn_field *f, int j,
struct type *type, int offset)
{
- struct type *vtable_type = gdbarch_data (vtable_type_gdbarch_data);
+ struct type *vtable_type = gdbarch_data (current_gdbarch,
+ vtable_type_gdbarch_data);
struct value *value = *value_p;
struct type *value_type = check_typedef (VALUE_TYPE (value));
struct type *vfn_base;
@@ -368,7 +372,8 @@ int
gnuv3_baseclass_offset (struct type *type, int index, char *valaddr,
CORE_ADDR address)
{
- struct type *vtable_type = gdbarch_data (vtable_type_gdbarch_data);
+ struct type *vtable_type = gdbarch_data (current_gdbarch,
+ vtable_type_gdbarch_data);
struct type *basetype = TYPE_BASECLASS (type, index);
struct value *full_object, *vbase_object, *orig_object;
struct value *vtable, *orig_typeinfo, *orig_base_info;