]> 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>
Tue, 28 Mar 2023 22:25:08 +0000 (23:25 +0100)
commitb1f0c065022784680044d30fa269025ae44b43de
treef0588574a3fab7fccb2b6ec12a716ecf0a5bb1ee
parentf6c6df050a3e04744f81a471a53864ee2291ef4a
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>
(cherry picked from commit b1c839be8353edfb1951454be3c5a8150f771385)
libstdc++-v3/include/std/stacktrace
This page took 0.061449 seconds and 6 git commands to generate.