The adding of backtrace info to std::exception would be most helpful. Currently when a program throws an exception, the debug info is rather useless. Only the backtrace to the catch is shown. Ideally symbol info and line numbers should be available, so that the throw can be easily found.
execinfo.h already provides a way of obtaining runtime backtrace info, but would it not be more appropriate to add this to debug info for the exception? -- Summary: Backtrace info in std::exception Product: gcc Version: 4.2.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: djh at emss dot co dot za http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33903