This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[commit] Move METHOD_PTR_* to cp-support.h
- From: Andrew Cagney <cagney at gnu dot org>
- To: gdb-patches at sources dot redhat dot com
- Date: Tue, 08 Feb 2005 19:06:34 -0500
- Subject: [commit] Move METHOD_PTR_* to cp-support.h
Ref:http://sourceware.org/ml/gdb/2004-11/msg00088.html
committed,
Andrew
PS: Based on Ulrich's comments I wonder if they should simply be deleted.
2005-02-08 Andrew Cagney <cagney@gnu.org>
* value.h (METHOD_PTR_IS_VIRTUAL, METHOD_PTR_FROM_VOFFSET)
(METHOD_PTR_TO_VOFFSET): Move from here ...
* cp-support.h (METHOD_PTR_IS_VIRTUAL, METHOD_PTR_FROM_VOFFSET)
(METHOD_PTR_TO_VOFFSET): ... to here.
* cp-valprint.c, p-valprint.c, eval.c: Include "cp-support.h"
* Makefile.in: Update dependencies.
Index: Makefile.in
===================================================================
RCS file: /cvs/src/src/gdb/Makefile.in,v
retrieving revision 1.696
diff -p -u -r1.696 Makefile.in
--- Makefile.in 28 Jan 2005 06:40:24 -0000 1.696
+++ Makefile.in 9 Feb 2005 00:02:08 -0000
@@ -1823,7 +1823,7 @@ cpu32bug-rom.o: cpu32bug-rom.c $(defs_h)
cp-valprint.o: cp-valprint.c $(defs_h) $(gdb_obstack_h) $(symtab_h) \
$(gdbtypes_h) $(expression_h) $(value_h) $(command_h) $(gdbcmd_h) \
$(demangle_h) $(annotate_h) $(gdb_string_h) $(c_lang_h) $(target_h) \
- $(cp_abi_h) $(valprint_h)
+ $(cp_abi_h) $(valprint_h) $(cp_support_h)
cris-tdep.o: cris-tdep.c $(defs_h) $(frame_h) $(frame_unwind_h) \
$(frame_base_h) $(trad_frame_h) $(dwarf2_frame_h) $(symtab_h) \
$(inferior_h) $(gdbtypes_h) $(gdbcore_h) $(gdbcmd_h) $(target_h) \
@@ -1891,7 +1891,7 @@ environ.o: environ.c $(defs_h) $(environ
eval.o: eval.c $(defs_h) $(gdb_string_h) $(symtab_h) $(gdbtypes_h) \
$(value_h) $(expression_h) $(target_h) $(frame_h) $(language_h) \
$(f_lang_h) $(cp_abi_h) $(infcall_h) $(objc_lang_h) $(block_h) \
- $(parser_defs_h)
+ $(parser_defs_h) $(cp_support_h)
event-loop.o: event-loop.c $(defs_h) $(event_loop_h) $(event_top_h) \
$(gdb_string_h) $(exceptions_h)
event-top.o: event-top.c $(defs_h) $(top_h) $(inferior_h) $(target_h) \
@@ -2378,7 +2378,8 @@ p-typeprint.o: p-typeprint.c $(defs_h) $
p-valprint.o: p-valprint.c $(defs_h) $(gdb_obstack_h) $(symtab_h) \
$(gdbtypes_h) $(expression_h) $(value_h) $(command_h) $(gdbcmd_h) \
$(gdbcore_h) $(demangle_h) $(valprint_h) $(typeprint_h) \
- $(language_h) $(target_h) $(annotate_h) $(p_lang_h) $(cp_abi_h)
+ $(language_h) $(target_h) $(annotate_h) $(p_lang_h) $(cp_abi_h) \
+ $(cp_support_h)
regcache.o: regcache.c $(defs_h) $(inferior_h) $(target_h) $(gdbarch_h) \
$(gdbcmd_h) $(regcache_h) $(reggroups_h) $(gdb_assert_h) \
$(gdb_string_h) $(gdbcmd_h) $(observer_h)
Index: cp-support.h
===================================================================
RCS file: /cvs/src/src/gdb/cp-support.h,v
retrieving revision 1.14
diff -p -u -r1.14 cp-support.h
--- cp-support.h 6 Jul 2004 19:29:30 -0000 1.14
+++ cp-support.h 9 Feb 2005 00:02:08 -0000
@@ -117,4 +117,10 @@ struct type *cp_lookup_transparent_type
extern struct cmd_list_element *maint_cplus_cmd_list;
+/* Pointer to member function. Depends on compiler implementation. */
+
+#define METHOD_PTR_IS_VIRTUAL(ADDR) ((ADDR) & 0x80000000)
+#define METHOD_PTR_FROM_VOFFSET(OFFSET) (0x80000000 + (OFFSET))
+#define METHOD_PTR_TO_VOFFSET(ADDR) (~0x80000000 & (ADDR))
+
#endif /* CP_SUPPORT_H */
Index: cp-valprint.c
===================================================================
RCS file: /cvs/src/src/gdb/cp-valprint.c,v
retrieving revision 1.35
diff -p -u -r1.35 cp-valprint.c
--- cp-valprint.c 8 Feb 2005 04:15:39 -0000 1.35
+++ cp-valprint.c 9 Feb 2005 00:02:08 -0000
@@ -35,6 +35,7 @@
#include "target.h"
#include "cp-abi.h"
#include "valprint.h"
+#include "cp-support.h"
int vtblprint; /* Controls printing of vtbl's */
int objectprint; /* Controls looking up an object's derived type
Index: eval.c
===================================================================
RCS file: /cvs/src/src/gdb/eval.c,v
retrieving revision 1.51
diff -p -u -r1.51 eval.c
--- eval.c 7 Feb 2005 23:51:03 -0000 1.51
+++ eval.c 9 Feb 2005 00:02:08 -0000
@@ -36,6 +36,7 @@
#include "objc-lang.h"
#include "block.h"
#include "parser-defs.h"
+#include "cp-support.h"
/* This is defined in valops.c */
extern int overload_resolution;
Index: p-valprint.c
===================================================================
RCS file: /cvs/src/src/gdb/p-valprint.c,v
retrieving revision 1.32
diff -p -u -r1.32 p-valprint.c
--- p-valprint.c 7 Feb 2005 17:06:29 -0000 1.32
+++ p-valprint.c 9 Feb 2005 00:02:08 -0000
@@ -37,6 +37,7 @@
#include "annotate.h"
#include "p-lang.h"
#include "cp-abi.h"
+#include "cp-support.h"
Index: value.h
===================================================================
RCS file: /cvs/src/src/gdb/value.h,v
retrieving revision 1.81
diff -p -u -r1.81 value.h
--- value.h 8 Feb 2005 05:41:10 -0000 1.81
+++ value.h 9 Feb 2005 00:02:08 -0000
@@ -246,11 +246,6 @@ struct internalvar
struct value *value;
};
-/* Pointer to member function. Depends on compiler implementation. */
-
-#define METHOD_PTR_IS_VIRTUAL(ADDR) ((ADDR) & 0x80000000)
-#define METHOD_PTR_FROM_VOFFSET(OFFSET) (0x80000000 + (OFFSET))
-#define METHOD_PTR_TO_VOFFSET(ADDR) (~0x80000000 & (ADDR))
#include "symtab.h"