Fixes: debugger: make loading list of source files optional

This commit is contained in:
hjk
2009-03-10 17:30:11 +01:00
parent 711d73fa1f
commit 341de778ef
11 changed files with 75 additions and 21 deletions

View File

@@ -1140,7 +1140,8 @@ void GdbEngine::handleAqcuiredInferior()
#if defined(Q_OS_MAC)
sendCommand("info pid", GdbInfoProc, QVariant(), NeedsStop);
#endif
reloadSourceFiles();
if (qq->wantsSourceFileList())
reloadSourceFiles();
tryLoadCustomDumpers();
#ifndef Q_OS_MAC
@@ -1297,7 +1298,8 @@ void GdbEngine::handleAsyncOutput(const GdbMi &data)
frame.findChild("func").data() + '%';
QApplication::alert(q->mainWindow(), 3000);
reloadSourceFiles();
if (qq->wantsSourceFileList())
reloadSourceFiles();
sendCommand("-break-list", BreakList);
QVariant var = QVariant::fromValue<GdbMi>(data);
sendCommand("p 0", GdbAsyncOutput2, var); // dummy