From b99f3b61b4388391eb04c21da6558c5a15c1e532 Mon Sep 17 00:00:00 2001 From: hjk Date: Mon, 9 Mar 2009 10:13:05 +0100 Subject: [PATCH] Fixes: debugger: disable automatic loading list of source files Details: accounted for >60% startup time in some cases and was presumably only needed as help for a fallback when setting breakpoints with gdb 6.5 on Windows --- src/plugins/debugger/gdbengine.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/debugger/gdbengine.cpp b/src/plugins/debugger/gdbengine.cpp index 26541acce93..fbbd0ecf5d2 100644 --- a/src/plugins/debugger/gdbengine.cpp +++ b/src/plugins/debugger/gdbengine.cpp @@ -1140,7 +1140,7 @@ void GdbEngine::handleAqcuiredInferior() #if defined(Q_OS_MAC) sendCommand("info pid", GdbInfoProc, QVariant(), NeedsStop); #endif - reloadSourceFiles(); + //reloadSourceFiles(); tryLoadCustomDumpers(); #ifndef Q_OS_MAC @@ -1297,7 +1297,7 @@ void GdbEngine::handleAsyncOutput(const GdbMi &data) frame.findChild("func").data() + '%'; QApplication::alert(q->mainWindow(), 3000); - reloadSourceFiles(); + //reloadSourceFiles(); sendCommand("-break-list", BreakList); QVariant var = QVariant::fromValue(data); sendCommand("p 0", GdbAsyncOutput2, var); // dummy