Debugger: Update "known functions" to skip

Fixes: QTCREATORBUG-26821
Change-Id: I12e895034bcf3896caef75f38364cbc9a4484ae5
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
hjk
2022-12-20 09:46:29 +01:00
parent 7e1fb3aaaa
commit c83e66d45f
2 changed files with 20 additions and 1 deletions

View File

@@ -567,7 +567,6 @@ DebuggerSettings::DebuggerSettings()
page2.registerAspect(&loadGdbInit); page2.registerAspect(&loadGdbInit);
page2.registerAspect(&loadGdbDumpers); page2.registerAspect(&loadGdbDumpers);
page2.registerAspect(&intelFlavor); page2.registerAspect(&intelFlavor);
page2.registerAspect(&skipKnownFrames);
page2.registerAspect(&usePseudoTracepoints); page2.registerAspect(&usePseudoTracepoints);
page2.registerAspect(&useIndexCache); page2.registerAspect(&useIndexCache);
page2.registerAspect(&gdbStartupCommands); page2.registerAspect(&gdbStartupCommands);

View File

@@ -42,8 +42,28 @@ QString removeObviousSideEffects(const QString &expIn)
bool isSkippableFunction(const QString &funcName, const QString &fileName) bool isSkippableFunction(const QString &funcName, const QString &fileName)
{ {
if (fileName.endsWith("/atomic_base.h"))
return true;
if (fileName.endsWith("/atomic"))
return true;
if (fileName.endsWith("/qatomic_cxx11.h"))
return true;
if (fileName.endsWith("/qbasicatomic.h"))
return true;
if (fileName.endsWith("/qobjectdefs.h"))
return true;
if (fileName.endsWith("/qobjectdefs_impl.h"))
return true;
if (fileName.endsWith("/qobject.cpp")) if (fileName.endsWith("/qobject.cpp"))
return true; return true;
if (fileName.endsWith("/qobject_p.h"))
return true;
if (fileName.endsWith("/qobject_p_p.h"))
return true;
if (fileName.endsWith("/qscopedpointer.h"))
return true;
if (fileName.endsWith("/qthread.h"))
return true;
if (fileName.endsWith("/moc_qobject.cpp")) if (fileName.endsWith("/moc_qobject.cpp"))
return true; return true;
if (fileName.endsWith("/qmetaobject.cpp")) if (fileName.endsWith("/qmetaobject.cpp"))