libstdc++: Pass error handler to libbacktrace functions
authorJonathan Wakely <jwakely@redhat.com>
Wed, 30 Nov 2022 12:32:53 +0000 (12:32 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Wed, 7 Dec 2022 19:54:45 +0000 (19:54 +0000)
commit3ad0f470c16d5528a5283060b007f8b419c33c92
tree5869492476ca86dd818a29c90e5a26d6c63ed803
parentdc02d4a99a7073dbef193c93529f2e1b64addfe2
libstdc++: Pass error handler to libbacktrace functions

Also pass threaded=1 to __glibcxx_backtrace_create_state and remove some
of the namespace scope declarations in the header.

Co-authored-by: François Dumont <frs.dumont@gmail.com>
libstdc++-v3/ChangeLog:

* include/debug/formatter.h [_GLIBCXX_DEBUG_BACKTRACE]
(_Error_formatter::_Error_formatter): Pass error handler to
__glibcxx_backtrace_create_state. Pass 1 for threaded argument.
(_Error_formatter::_S_err): Define empty function.
* src/c++11/debug.cc (_Error_formatter::_M_error): Pass error
handler to __glibcxx_backtrace_full.
libstdc++-v3/include/debug/formatter.h
libstdc++-v3/src/c++11/debug.cc