This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[commit] Const baseclass_offset's valaddr parameter


FYI, committed,
Andrew
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.

Index: cp-abi.c
===================================================================
RCS file: /cvs/src/src/gdb/cp-abi.c,v
retrieving revision 1.7
diff -p -u -r1.7 cp-abi.c
--- cp-abi.c	26 Nov 2003 22:04:00 -0000	1.7
+++ cp-abi.c	28 Jan 2005 06:27:37 -0000
@@ -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: cp-abi.h
===================================================================
RCS file: /cvs/src/src/gdb/cp-abi.h,v
retrieving revision 1.6
diff -p -u -r1.6 cp-abi.h
--- cp-abi.h	12 Apr 2003 17:41:25 -0000	1.6
+++ cp-abi.h	28 Jan 2005 06:27:37 -0000
@@ -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 (str
 
    -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: gnu-v2-abi.c
===================================================================
RCS file: /cvs/src/src/gdb/gnu-v2-abi.c,v
retrieving revision 1.16
diff -p -u -r1.16 gnu-v2-abi.c
--- gnu-v2-abi.c	28 Jan 2005 06:16:49 -0000	1.16
+++ gnu-v2-abi.c	28 Jan 2005 06:27:37 -0000
@@ -346,8 +346,8 @@ vb_match (struct type *type, int index, 
    -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: gnu-v2-abi.h
===================================================================
RCS file: /cvs/src/src/gdb/gnu-v2-abi.h,v
retrieving revision 1.1
diff -p -u -r1.1 gnu-v2-abi.h
--- gnu-v2-abi.h	28 Jan 2005 06:16:49 -0000	1.1
+++ gnu-v2-abi.h	28 Jan 2005 06:27:37 -0000
@@ -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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]