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.
+
* gnu-v2-abi.h: New file.
* gnu-v2-abi.c: Include "gnu-v2-abi.h".
(gnuv2_baseclass_offset): Delete declaration.
/* Generic code for supporting multiple C++ ABI's
- Copyright 2001, 2002, 2003 Free Software Foundation, Inc.
+
+ Copyright 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
This file is part of GDB.
}
int
-baseclass_offset (struct type *type, int index, char *valaddr,
+baseclass_offset (struct type *type, int index, const bfd_byte *valaddr,
CORE_ADDR address)
{
if (current_cp_abi.baseclass_offset == NULL)
/* 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.
-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
{
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);
};
-1 is returned on error. */
int
-gnuv2_baseclass_offset (struct type *type, int index, char *valaddr,
- CORE_ADDR address)
+gnuv2_baseclass_offset (struct type *type, int index,
+ const bfd_byte *valaddr, CORE_ADDR address)
{
struct type *basetype = TYPE_BASECLASS (type, index);
#define GNU_V2_ABI_H
extern int gnuv2_baseclass_offset (struct type *type, int index,
- char *valaddr, CORE_ADDR address);
+ const bfd_byte *valaddr,
+ CORE_ADDR address);
#endif