2005-01-28 Andrew Cagney <cagney@gnu.org>
authorAndrew Cagney <cagney@redhat.com>
Fri, 28 Jan 2005 06:29:42 +0000 (06:29 +0000)
committerAndrew Cagney <cagney@redhat.com>
Fri, 28 Jan 2005 06:29:42 +0000 (06:29 +0000)
* 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.

gdb/ChangeLog
gdb/cp-abi.c
gdb/cp-abi.h
gdb/gnu-v2-abi.c
gdb/gnu-v2-abi.h

index 72ec92b1085da50470f0e229e69d0a13a0e53f84..d9bbadfd9480f5f6d5554231dbb6f1874c37ea78 100644 (file)
@@ -1,5 +1,13 @@
 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.
index a8530209c9b5b8e86ff735e229b9fdbfa34ad63f..e347d5e83d2f378c0b3332e4c77dcfd98727bac1 100644 (file)
@@ -1,5 +1,6 @@
 /* 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.
 
@@ -69,7 +70,7 @@ is_operator_name (const char *name)
 }
 
 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)
index 0413abafc4e78c1f06e39231903efa0ad0eea2d2..cf21a2f4cde8bbe400b1ba2436f71321e43562a3 100644 (file)
@@ -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);
 };
 
 
index 20b697550f9b5cae32990cc3533804a6f82d5644..f545ac180c40e439858fd2f9953c7b94ab9952fe 100644 (file)
@@ -346,8 +346,8 @@ vb_match (struct type *type, int index, struct type *basetype)
    -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);
 
index baca2bff7cc810f0ad8131aab4dff60975ecd415..e8a5f88b051eaf6a9051e469abd49ac8d15f044a 100644 (file)
@@ -25,6 +25,7 @@
 #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
This page took 0.030889 seconds and 4 git commands to generate.