www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/02/21/02:05:15

X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f
Date: Thu, 21 Feb 2002 08:56:28 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Charles Sandmann <sandmann AT clio DOT rice DOT edu>
cc: djgpp AT delorie DOT com
Subject: Re: RHIDE debugger fails to start on board without floating point unit
In-Reply-To: <3c74687f.sandmann@clio.rice.edu>
Message-ID: <Pine.SUN.3.91.1020221085218.2258E-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Wed, 20 Feb 2002, Charles Sandmann wrote:

> You can't use debuggers with an emulator if I remember correctly..  Does your 
> program use floating point?  If it does not, this might work:
>  1) SET 387=N
>  2) Rename EMU387.DXE so it's not found.
> See if you can debug.  I believe this should avoid all FP instructions.

Unfortunately, I don't think it will work because the debugger tries to 
save the x87 state before it runs the debuggee, even if there's no x87 
(because the emulator state needs also to be saved).  Without emu387.dxe, 
the code in the debugger which does that will bomb.

> If it does use floating point I think you are stuck, since the emulator 
> doesn't know how to handle floating traps in a different address space.

It doesn't need to, I think: the debug support in libdbg.a should do the 
necessary footwork for it to be transparent.  This should really be fixed 
some day.

- Raw text -


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