Message-ID: From: "Andris Pavenis" To: Robert Hoehne Date: Tue, 12 Jan 1999 21:09:14 +0200 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT 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