mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 23:05:04 +01:00
Log Thread-name in stacktrace
This commit is contained in:
parent
3fbfe72fa9
commit
f7b826841b
1 changed files with 3 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue