]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Add error handler for <stacktrace>
authorBjörn Schäpers <bjoern@hazardy.de>
Wed, 30 Nov 2022 12:04:16 +0000 (12:04 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Fri, 2 Dec 2022 00:17:42 +0000 (00:17 +0000)
commit40adb39566c6e06809fc63ccade8d25bdfc8dd24
tree278b79a066864a3dd80caf1ba7e48bf6593321d1
parentde144fdab17dbbb64ccb540056ab78b4ffb3fbbc
libstdc++: Add error handler for <stacktrace>

Not providing an error handler results in a null pointer dereference
when an error occurs.

Co-authored-by: Jonathan Wakely <jwakely@redhat.com>
libstdc++-v3/ChangeLog:

* include/std/stacktrace (stacktrace_entry::_S_err_handler): New
static function.
(stacktrace_entry, basic_stacktrace): Pass &_S_err_handler to
all calls to libbacktrace.
libstdc++-v3/include/std/stacktrace