delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/11/18/07:15:20

From: muller AT janus DOT u-strasbg DOT fr (Pierre Muller)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: GDB and extended type
Date: 18 Nov 1997 10:01:18 GMT
Organization: Institut Charles Sadron
Lines: 35
Message-ID: <64rp1e$1s5@news.u-strasbg.fr>
References: <199711180544 DOT VAA11183 AT adit DOT ap DOT net>
NNTP-Posting-Host: laocoon.u-strasbg.fr
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

>>>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 -


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