[commit] new observer.[hc] files

Andreas Schwab schwab@suse.de
Fri Feb 28 16:10:00 GMT 2003


Daniel Jacobowitz <drow@mvista.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@suse.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."



More information about the Gdb-patches mailing list