Log Thread-name in stacktrace
This commit is contained in:
parent
3fbfe72fa9
commit
f7b826841b
@ -59,6 +59,9 @@ PBD::stacktrace (std::ostream& out, int levels, int start)
|
|||||||
size = backtrace (array, 200);
|
size = backtrace (array, 200);
|
||||||
|
|
||||||
if (size && size >= start) {
|
if (size && size >= start) {
|
||||||
|
if (start == 0) {
|
||||||
|
out << "-- Stacktrace Thread: " << pthread_name () << std::endl;
|
||||||
|
}
|
||||||
strings = backtrace_symbols (array, size);
|
strings = backtrace_symbols (array, size);
|
||||||
|
|
||||||
if (strings) {
|
if (strings) {
|
||||||
|
Loading…
Reference in New Issue
Block a user