summaryrefslogtreecommitdiff
path: root/gdb/cp-abi.h
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2005-01-28 06:29:42 +0000
committerAndrew Cagney <cagney@redhat.com>2005-01-28 06:29:42 +0000
commit3bf3a0b27273d803393a460bd8b9ca9658a6640e (patch)
tree11b8032b511dc919d0641c4648c094bc15811b6d /gdb/cp-abi.h
parentb0f2ccc00a4703c2ab4c8243bca4d5ed85d30efe (diff)
downloadgdb-3bf3a0b27273d803393a460bd8b9ca9658a6640e.tar.gz
2005-01-28 Andrew Cagney <cagney@gnu.org>
* gnu-v2-abi.h (gnuv2_baseclass_offset): Make "valaddr" a const bfd_byte. * cp-abi.h (baseclass_offset): Make "valaddr" a const bfd_byte. (struct cp_abi_ops): Make baseclass_offset's "valaddr" a const bfd_byte. * cp-abi.c (baseclass_offset): Update. * gnu-v2-abi.c (gnuv2_baseclass_offset): Update.
Diffstat (limited to 'gdb/cp-abi.h')
-rw-r--r--gdb/cp-abi.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/gdb/cp-abi.h b/gdb/cp-abi.h
index 0413abafc4e..cf21a2f4cde 100644
--- a/gdb/cp-abi.h
+++ b/gdb/cp-abi.h
@@ -1,7 +1,9 @@
/* Abstraction of various C++ ABI's we support, and the info we need
to get from them.
+
Contributed by Daniel Berlin <dberlin@redhat.com>
- Copyright 2001 Free Software Foundation, Inc.
+
+ Copyright 2001, 2005 Free Software Foundation, Inc.
This file is part of GDB.
@@ -142,8 +144,8 @@ extern struct type *value_rtti_type (struct value *value,
-1 is returned on error. */
-extern int baseclass_offset (struct type *type, int index, char *valaddr,
- CORE_ADDR address);
+extern int baseclass_offset (struct type *type, int index,
+ const bfd_byte *valaddr, CORE_ADDR address);
struct cp_abi_ops
{
@@ -160,8 +162,8 @@ struct cp_abi_ops
int j, struct type * type, int offset);
struct type *(*rtti_type) (struct value *v, int *full, int *top,
int *using_enc);
- int (*baseclass_offset) (struct type *type, int index, char *valaddr,
- CORE_ADDR address);
+ int (*baseclass_offset) (struct type *type, int index,
+ const bfd_byte *valaddr, CORE_ADDR address);
};