This is the mail archive of the
gdb-patches@sourceware.cygnus.com
mailing list for the GDB project.
Re: Pascal extensions for GDB
- To: Pierre Muller <muller at cerbere dot u-strasbg dot fr>
- Subject: Re: Pascal extensions for GDB
- From: Jim Blandy <jimb at cygnus dot com>
- Date: 26 Oct 1999 11:06:58 -0500
- Cc: gdb-patches at sourceware dot cygnus dot com
- References: <Stan Shebs <shebs@cygnus.com><199910211743.KAA08509@andros.cygnus.com><199910220758.JAA04940@cerbere.u-strasbg.fr>
> 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.