This is the mail archive of the
mailing list for the GDB project.
Re: Pascal extensions for GDB
- To: shebs at cygnus dot com
- Subject: Re: Pascal extensions for GDB
- From: Mark Kettenis <kettenis at wins dot uva dot nl>
- Date: Tue, 26 Oct 1999 01:18:29 +0200 (CEST)
- CC: muller at cerbere dot u-strasbg dot fr, gdb-patches at sourceware dot cygnus dot com
- References: <199910252247.PAA10969@andros.cygnus.com>
Date: Mon, 25 Oct 1999 15:47:10 -0700
From: Stan Shebs <email@example.com>
FPC supports long double in 10 bytes instead of 12 like in C !
Is that supported with your current FPU patches ??
Argh. (I didn't notice this PS at the first time your message passed
my eye.) Are you sure they are really 10 bytes and not 10 bytes plus
2 bytes of garbadge. AFAIK the i386 has alignment restrictions that
demand that extended precision floating point numbers are aligned on
4-byte boundaries. That's the reason why sizeof (long double) is a
multiple of 4, i.e. 12 bytes.
Not having seen the patches, I can't say for sure - it depends on
how the compiler records info about long doubles, among other things.
If there really are only 10 bytes it makes things difficult. GDB only
knows about three different floating point types, equivalent with
`float', `double' and `long double', and cannot handle floating point
types whose size differs from the size of one of those types.