I am attempting to write an error handler for an embedded system
running QNX 6.1. Once I receive a signal like SIGSEGV for example,
I would like to print to the screen select thread information like
the PC, SP, and register values at the faulting instruction. I have
successfully implemented the signal handler, but I am now trying to
figure out a way to print these values to the screen. I have tried using
tracing and the setjmp function, but neither could be used in my case.
However, there is a file called sigcontext.h that exists on linux and QNX
4. This file defines a struct that contains the desired information. In
addition, the struct is easily manageable and would be ideal for my
environment. However, this file does not exist on QNX 6.1 and when I
attempted to copy it over it would not compile most likely because it is
platform specific. Does anyone know if there is an equivalent file for QNX
6.1? If not does QNX 6.1 supply another method for attaining this
information? Thanks!
Adam