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]

Re: [commit] new observer.[hc] files


Daniel Jacobowitz <drow at mvista dot com> writes:

|> Is this extra indirection really necessary?  Because I'm 99% sure it
|> won't work on several 64-bit platforms.  Function pointers and data
|> pointers are not required to have the same size; on IA-64 I believe
|> that a function pointer is 128 bits and a data pointer is 64 bits.

Function pointer are still 64 bits on ia64 (and ppc64).  They do not point
to the code itself, but to a descriptor which contains the actual code
pointer and the gp value.  But I agree that mixing function pointer and
object pointers should be avoided.

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab at suse dot de
SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."


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