diff options
author | Andrew Cagney <cagney@redhat.com> | 2005-02-09 00:04:29 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2005-02-09 00:04:29 +0000 |
commit | d3cbe7ef42305a5a67982ea342c8df8d3fc5fc5f (patch) | |
tree | d2d2433ea4d7737565c7dccd59d7f27cb039b386 /gdb/cp-support.h | |
parent | 3c6e816922390b32279d6cce8c266246609f4ee2 (diff) | |
download | gdb-d3cbe7ef42305a5a67982ea342c8df8d3fc5fc5f.zip gdb-d3cbe7ef42305a5a67982ea342c8df8d3fc5fc5f.tar.gz gdb-d3cbe7ef42305a5a67982ea342c8df8d3fc5fc5f.tar.bz2 |
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.
Diffstat (limited to 'gdb/cp-support.h')
-rw-r--r-- | gdb/cp-support.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/cp-support.h b/gdb/cp-support.h index 569aeac..f463d59 100644 --- a/gdb/cp-support.h +++ b/gdb/cp-support.h @@ -117,4 +117,10 @@ struct type *cp_lookup_transparent_type (const char *name); 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 */ |