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 X-Sender: eliz AT is To: Charles Sandmann 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: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 Precedence: bulk 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.