Mail Archives: djgpp/1997/07/24/17:34:30
Andrew Crabtree wrote:
>
> > GDB does not seem to understand the concept of a long double. When I try to
> > examine one, it tells me it is "void". `print' and `whatis' both demonstrate
> When I use -gstabs from pgcc I get this
>
> (gdb) p x
> $1 Can't deal with a floating point number of 12 bytes.
> (gdb) whatis x
> type = long double
>
> > this behavior. Thus there is no way to find its value. Is this limitation
> > known
> I would guess it is known, and that it is just waiting for someone to
> fix it it ;)
Now after this thread it is known to me. (I'm the person how made
the GDB port for DJGPP). I checked it and found that it was a
configuration
problem (I forgot to define
#define HAVE_LONG_DOUBLE 1
in the config file.
Solution for you:
1) Get the GDB sources (for DJGPP) and manually edit the config.h file
to enable
that define and the rebuild gdb
2) Ask me, so I can send you a newly build gdb.exe with that (along with
some others)
fixed via email.
BTW: The information from GDB that the long double type is 'void' is a
limitation
of the COFF debugging information and cannot be fixed by me. That means
you will get
the long double support ONLY when using the stabs debugging information.
Robert
--
*****************************************************************
* Robert Hoehne, Fakultaet fuer Mathematik, TU-Chemnitz-Zwickau *
* Post: Am Berg 3, D-09573 Dittmannsdorf *
* e-Mail: Robert DOT Hoehne AT Mathematik DOT TU-Chemnitz DOT DE *
* WWW: http://www.tu-chemnitz.de/~rho *
*****************************************************************
- Raw text -