www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/09/18/07:27:20

Date: Wed, 18 Sep 1996 13:07:17 +0200 (MET DST)
From: Mark Habersack <grendel AT ananke DOT amu DOT edu DOT pl>
Reply-To: grendel AT ananke DOT amu DOT edu DOT pl
To: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
cc: Ian Romanick <idr AT cs DOT pdx DOT edu>, djgpp AT delorie DOT com
Subject: Re: Debug before main?
In-Reply-To: <Pine.SUN.3.91.960918104353.403C-100000@is>
Message-ID: <Pine.NEB.3.95.960918125915.170H-100000@ananke.amu.edu.pl>
MIME-Version: 1.0

On Wed, 18 Sep 1996, Eli Zaretskii wrote:

>I works for me.  The startup code is just a piece of code, there's nothing
>special about the functions there.  Nothing special to be said about this
>in the FAQ. 
I recently subled upon a problem with GDB. My friend asked me to install DJGPP
on his 386DX40 8MB computer, no FPU. I've written a simple hello proggy to
show him how to debug using GDB. In hello there was a piece of code:

  float  _float1, _float2;

  printf("%f + %f = %f", _float1, _float2, _float1 + _float2);
  test_call();

Now when I set a breakpoint on test_call() and 'run' the program, GDB
signalled that 'Program has exited wit SIGFPE'. I thought I made a mistake
somewhere (?) but the program was working ok from cmdline. Then it ocurred to
me that it might be a problem with the FPU emulation. Is it?

Mark

**********************************************************************
So if you ask me how do I feel inside, I could honestly tell you we've
been taken on a very long ride. And if my owners let me have free time
some day, with all good intention I would probably run away!
Clutching the short straw...
******************* http://ananke.amu.edu.pl/~grendel ****************

- Raw text -


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