This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
METHOD_PTR_*?
- From: Andrew Cagney <cagney at gnu dot org>
- To: gdb at sources dot redhat dot com
- Date: Tue, 09 Nov 2004 15:57:02 -0500
- Subject: METHOD_PTR_*?
Hello,
From value.h:
/* 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))
It also depends on the underlying architecture - not very 64-bit
friendly :-/
Andrew