delorie.com/djgpp/bugs/show.cgi | search |
Under the gdb 4.12 binary distributed with djgpp v2, a program that chains into the keyboard hardware interrupt vector doesn't get any interrupts. The same program also chains onto the timer hardware interrupt vector, and it gets those interrupts just fine. The same program ran fine when compiled with djgpp v1 and run with the gdb in that package. And the program compiled with v2 gets keyboard interrupts just fine when run without gdb. I see the same problem when running on DOS with CWSDPMI and in a DOS box under Windows 95. Phil
Known bug with all debuggers. They prevent the keyboard interrupt from being hooked, since SIGINT isn't handled properly. I was too busy to fix this, but I know how. If anyone wants to hack on src/debug/common/dbgcom.c, I can give you hints. One of the problems that must be handled is that the debugger itself must get input from the keyboard - so must hook/unhook this stuff around calls, which is somewhat of a mess (you need a hooked interrupt database). This is also related to the fact that the debugee does not see signals (they are all caught by the debugger). Hey, it was a quick hack :-)
Fixed in WIP, and will be in v2.03.
webmaster | delorie software privacy |
Copyright © 2010 by DJ Delorie | Updated Jul 2010 |