Mail Archives: djgpp/1997/11/18/07:15:20
>>>You can do it yourself, if you need it badly enough. Download the sources
>>>(v2gnu/gdb416s.zip), edit the file gdb/config.h to change this line:
>>> /* #undef HAVE_LONG_DOUBLE */
>>>into this:
>>> #define HAVE_LONG_DOUBLE 1
>>>then build gdb, and live happily ever after!
>> I did that but GDB still says
>>something like Don't know how to deal with float of 10 bytes
>>
>> I took a look inside the sources and the long double type
>>is expected to be twice the size of the double type (i.e. 2*8=16 not 10 !!)
>>
>> So I still don't have the value of my extended !!
>It isn't that simple, sorry. Eli neglected to mention that `long double' is
>only supported with stabs debugging. Doing this requires getting the GCC
>source, patching and recompiling it. I think Robert's web page has the patch
>(http://www.tu-chemnitz.de/~sho/rho) or I can email it, if necessary. It's
>fairly small.
That is not the problem here because I am not using GCC but
FPK (a freeware pascal compiler).
I added the stabs debugging feature to this compiler
so I can tell you for sure that the debugging format is stabs.
Anyway I changed the size of long double to 10 bytes
my EXTENDED type defined by the compiler is also 10 bytes long
but I still don't get the values printed out.
debugging GDB with itself and setting a breakpoint at extract_floating
I saw that sizeof(DOUBLEST) is 12 instead of 10,
but I have no idea from were this comes from !!
Any help would be welcomed !!
- Raw text -