QNX RTOS v4 Knowledge Base
QNX RTOS v4 Knowledge Base
Title |
Debugger32 and interrupt routines |
Ref. No. |
QNX.000009256 |
Category(ies) |
Kernel, Development |
Issue |
We have an interrupt routine that works fine when run using proxy interrupts, but it has problems running as the first level interrupt handler. This is being moved from a proxy interrupt handler for performance reasons.
The man page on Debugger32 says that it can be used to debug interrupt handlers, but not how to do this.
|
Solution |
When the process with the interrupt handler is running, hit the keys <ctrl>-<alt>-<esc>; debugger32 is now running. Type:
p the process pid b your-cs:offset-of-interrupt-handler {your cs is almost always 5) g And the debugger will stop at the beginning of the interrupt handler. You can also scatter "int 0xf3" (or ll_debug() if you use <sys/inline.h>) to trap to it.
See Also: Debugger32 in "QNX OS Utilities - A to M" manual at:
http://support.qnx.com./support/docs/qnx4/utils/index.html
|
|