Print note when stacktrace is too short
This commit is contained in:
parent
92d8a270a8
commit
8a41931ff4
@ -58,7 +58,7 @@ PBD::stacktrace (std::ostream& out, int levels, int start)
|
|||||||
|
|
||||||
size = backtrace (array, 200);
|
size = backtrace (array, 200);
|
||||||
|
|
||||||
if (size) {
|
if (size && size >= start) {
|
||||||
strings = backtrace_symbols (array, size);
|
strings = backtrace_symbols (array, size);
|
||||||
|
|
||||||
if (strings) {
|
if (strings) {
|
||||||
|
Loading…
Reference in New Issue
Block a user