www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1999/01/12/14:09:33

Message-ID: <B0000062244@stargate.astr.lu.lv>
From: "Andris Pavenis" <pavenis AT lanet DOT lv>
To: Robert Hoehne <robert DOT hoehne AT gmx DOT net>
Date: Tue, 12 Jan 1999 21:09:14 +0200
MIME-Version: 1.0
Subject: dbgcom.c
CC: djgpp-workers AT delorie DOT com
X-mailer: Pegasus Mail for Win32 (v3.01d)
Reply-To: djgpp-workers AT delorie DOT com

Hi!

About FPU status saving in dbgcom.c: 

it appears that this operation must be done in dbgcom.c (more exactly inside
calls to hook_dpmi() and unhook_dpmi()). Therefore Robert's patch is Ok.

It seems that it is necessary to include modified version of  
src/libc/go32/exceptn.S in libdbg.a (simply replacement for object file in libc.a 
for applications that uses libdbg.a). After that and some additional hacking
seems that even hooking keyboard interrupt begins to work. I also solved
problems with getting SIGFPE. There are still problems but they doesn't look very 
difficult:

	- I broke exceptions support in debugger itself but I don't think it will be 
          very difficult to solve;
       - Currently programs that hooks keyboard interrupt without calling
         previous handler cannot get SIGINT. I think solving this problems should
         not be very difficult;

I tried to run ex5.exe from allegro-3.1 examples under FSDB (demonstrates 
Allegro keyboard handler) and stepping worked Ok and I got also keyboard
input in it.

Andris

- Raw text -


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