Mail Archives: djgpp/2001/11/24/14:31:45
> Date: Sat, 24 Nov 2001 19:51:36 +0100
> From: Martin Steuer <martinSteuer AT gmx DOT de>
>
> I got some problems and tried to debug the program under RHIDE (v 1.4.9).
> BUT single stepping thru this program was nearly impossible after my IRQ
> Handler had been installed -- the debugging sessions crashed very often the
> whole system.
If the crashes are accompanied by the normal DJGPP crash message with
registers and EIP traceback, please post here one of these messages
in its entirety.
> So finally here's my question: Does anyone know about gdb having problems
> with hooked hardware interrupts?
Please tell more details; it's hard to answer that question because
it's too general. Debugging programs that hook hardware interrupts
is a bit tricky, but should in general work.
To give a more specific answer, we need to know what hardware
interrupts does your program hook, and how (in protected mode, real
mode, or both). A source of your wrapper function might be useful.
Also, what version of which OS is that? Finally, if you don't use
DJGPP v2.03, such problems are expected, so please upgrade.
Oh, and of course, the usual gotchas of hooking hardware interrupts
apply even under a debugger, so please make sure you lock all the
memory, including the stack, used by code that is called in the
interrupt context.
- Raw text -