C ++ exception information from kernel file

I have a program that catches an unknown exception. The code is as follows:

try { ... } catch (...) { abort(); // generates core file } 

I have a main file and an executable. Is there any way for me to find out what exception he caught and where in the code it was generated without re-compiling or re-launching in gdb? I was thinking of trying to figure it all out from the main file using gdb. Any ideas how to do this?

PS: I am on Linux CentOS 5.4

+4
source share
2 answers

If you do not pass backflow information to the exception (for example, explained here ), and if this exception is not found, there is no way to get the information where the exception came from.

Since the catch all ( catch(...) ) catch(...) caught the exception, you cannot get this information.

+1
source

As far as I know, you cannot get the exception to fall into the trap (...)

Take a look at this post:

how to get catch-all exception message

+1
source

All Articles