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


   Date: Mon, 25 Oct 1999 15:47:10 -0700
   From: Stan Shebs <shebs@cygnus.com>

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

Mark

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