]> gcc.gnu.org Git - gcc.git/commit
libstdc++: Deliver names of C functions in <stacktrace>
authorBjörn Schäpers <bjoern@hazardy.de>
Tue, 13 Dec 2022 21:02:47 +0000 (22:02 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Sat, 14 Jan 2023 20:49:45 +0000 (20:49 +0000)
commitb1c839be8353edfb1951454be3c5a8150f771385
treee5964861b2e0ead549c1dd4892c76634018a3cd1
parentd80e5a7b30e5d045c808f5235123e366e4e9286c
libstdc++: Deliver names of C functions in <stacktrace>

__cxa_demangle is only to demangle C++ names, for all C functions,
extern "C" functions, and including main it returns -2, in that case
just adapt the given name. Otherwise it's kept empty, which doesn't look
nice in the stacktrace.

libstdc++-v3/ChangeLog:

* include/std/stacktrace (stacktrace_entry::_S_demangle): Use
raw __name if __cxa_demangle could not demangle it.

Signed-off-by: Björn Schäpers <bjoern@hazardy.de>
libstdc++-v3/include/std/stacktrace
This page took 0.181441 seconds and 5 git commands to generate.