delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/07/24/17:34:30

From: Robert Hoehne <Robert DOT Hoehne AT Mathematik DOT TU-Chemnitz DOT DE>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: GDB doesn't understand long doubles
Date: Mon, 21 Jul 1997 10:37:00 +0200
Organization: TU Chemnitz-Zwickau
Lines: 48
Message-ID: <33D31FAC.4067FF0@Mathematik.TU-Chemnitz.DE>
References: <199707162032 DOT AA119725152 AT typhoon DOT rose DOT hp DOT com>
NNTP-Posting-Host: prokyon.hrz.tu-chemnitz.de
Mime-Version: 1.0
CC: eldredge AT ap DOT net
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019