Pascal extensions for GDB
Jim Blandy
jimb@cygnus.com
Tue Oct 26 09:08:00 GMT 1999
> I would like to submit a big patch for GDB adding
> support for pascal language !
As Stan says: Wonderful!
> PS : FPC supports long double in 10 bytes instead of 12 like in C !
> Is that supported with your current FPU patches ??
At the moment, GDB doesn't have any support for a 10-byte long double
type. Our long doubles are twelve bytes long, since that's how the C
compilers lay them out.
One could certainly add support to GDB for this. If your compiler
emits debugging information in a helpful way, it could be reasonably
clean.
However, I think you might want to consider changing your compiler to
use 12-byte long doubles, aligned on a four-byte boundary. This would
make it easier for Pascal and C code to share data. Also, the Intel
x86 processor manual says that aligning objects improves performance;
this is why the C ABI requires four-byte alignment.
More information about the Gdb-patches
mailing list