Mail Archives: djgpp/1996/05/17/20:01:08
Is there a routine I can call to get a stack trace? I want to be
able to have some documentation for unusual errors conditions, without
having to have my end-users run my codes under GDB. (When I have
needed to do this in the past, with other compilers, I would raise an
error condition, perhaps by intentionally dividing by zero. With the
recent thread about the stack trace for SIGFPE's only showing
exception handling routines, I am not sure that that old technique
will always give me what I want. And besides, I want my own message,
without the register contents.)
I found the code that produces the list of "Call frame traceback EIPs"
(in dpmiexcp.c), but that function appears to start the trace based on
info filled into a structure by the exception handler.
A truly deluxe version of the routine I desire would do the
equivalent of symify, too.
Thanks,
Andy S.
- Raw text -