I want to write a (or use existing) crash handler for my app. The problem I've with that is that I want it for Windows and gcc.
I deeply searched for such solution but there are only VS ones.
So far I've a handler registered with SetUnhandledExceptionFilter.
According to my observations when handler is called, stack is 'limited' to my handler function + a few extra system functions.
Original stack seems to be above it (according to original esp and ebp stored in EXCEPTION_POINTERS passed to my handler).
I was trying to switch current esp and ebp to saved ones, but I usualy ends with crash.
I've also tried using posix' signal but stack is limited in the same way.