Log Thread-name in stacktrace

This commit is contained in:
Robin Gareus 2022-01-26 00:16:28 +01:00
parent 3fbfe72fa9
commit f7b826841b
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -59,6 +59,9 @@ PBD::stacktrace (std::ostream& out, int levels, int start)
size = backtrace (array, 200);
if (size && size >= start) {
if (start == 0) {
out << "-- Stacktrace Thread: " << pthread_name () << std::endl;
}
strings = backtrace_symbols (array, size);
if (strings) {