Customizing uncaught exception messages

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi, is it possible to get more informative error messages for uncaught exceptions? For instance, I'm interested in getting Java-like tracebacks with file and line numbers. Currently what I see is far from that, e.g.:

terminate called after throwing an instance of 'std::logic_error'
  what():  basic_string::_S_construct NULL not valid

Is there any way to hook into the exception handling mechanisms and produce such a traceback? If the solution is platform-dependent, I am using GNU/Linux with gcc 4.2.3.

Thanks!
--
Yang Zhang
http://www.mit.edu/~y_z/

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux