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

Re: Pascal extensions for GDB



>   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.

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