0

Is it possible to get a call stack from the point of throwing an exception, when the exception is uncaught and terminate handler is called? On windows.

I must mention, that I can not use debugger, I want to create a mini dump in the terminate handler, or at least write call stack in a file. Could you please provide some details how to get call stack in my situation?

herolover
  • 733
  • 3
  • 9
  • 18
  • Yes, it's possible. Try to run program under debugger (e.g. gdb) and when it stopped see stack trace (command `bt` for gdb) – user2807083 Apr 28 '16 at 11:38
  • Is this information to add to the exception, or just for viewing in the debugger whilst debugging the application? – Niall Apr 28 '16 at 11:42
  • http://www.cplusplus.com/reference/exception/set_terminate/ – Hans Passant Apr 28 '16 at 11:53
  • I must mention, that I can not use debugger, I want to create a mini dump in the terminate handler, or at least write call stack in a file. Could you please provide some details how to get call stack in my situation? – herolover Apr 28 '16 at 13:09

0 Answers0