Commit 0771e70e authored by Harald Sitter's avatar Harald Sitter 🦄

skip over _start and __libc_start_main

when an application has no debug symbols it will usually be missing the
functionName for main/kdemain and instead show the underlying libc helpers
in the trace. do not consider them in the rating, they add nothing of
value to the stack trace.

parent ee9f1ec8
......@@ -203,6 +203,8 @@ static bool lineShouldBeIgnored(const BacktraceLine & line)
|| line.functionName().startsWith(QLatin1String("*__GI_")) //glibc2.9 uses *__GI_ as prefix
|| line.libraryName().contains(QLatin1String(""))
|| line.libraryName().contains(QLatin1String(""))
|| line.functionName() == QLatin1String("__libc_start_main") // below main on apps without symbols
|| line.functionName() == QLatin1String("_start") // below main on apps without symbols
#ifdef Q_OS_MACOS
|| (line.libraryName().startsWith(QLatin1String("libsystem_")) && line.libraryName().endsWith(QLatin1String(".dylib")))
|| line.libraryName().contains(QLatin1String("Foundation`"))
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment