This is the mail archive of the gdb@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]

Re: METHOD_PTR_*?


On Mon, Nov 15, 2004 at 09:21:20PM -0500, Andrew Cagney wrote:
> Daniel Jacobowitz wrote:
> >On Mon, Nov 15, 2004 at 08:13:00PM -0500, Andrew Cagney wrote:
> >
> >>Daniel Jacobowitz wrote:
> >>
> >>>On Tue, Nov 09, 2004 at 03:57:02PM -0500, Andrew Cagney wrote:
> >>>
> >>>
> >>>>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 :-/
> >>>
> >>>
> >>>Yuck!
> >>
> >>Can it for the moment be moved out of value.h?
> >
> >
> >What would that accomplish?  Where would it move to?
> 
> It would remove it from value.h.

That doesn't really answer my question...  I assume that you want to
move it so that value.h only contains some set of "blessed" "struct
value" related routines.  But this has no home obviously more
appropriate than its current home.

>  cp-abi.h?

How about cp-support.h?

-- 
Daniel Jacobowitz


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