forked from qt-creator/qt-creator
Debugger: Don't scan directories that do not exist.
Change-Id: Ie79249039643041fd68da6766b0e6f3ca6080b86 Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
@@ -472,9 +472,9 @@ DebuggerRunControl *DebuggerRunControlFactory::doCreate
|
||||
(const DebuggerStartParameters &sp0, RunConfiguration *rc, QString *errorMessage)
|
||||
{
|
||||
TaskHub *th = ProjectExplorerPlugin::instance()->taskHub();
|
||||
th->clearTasks(Core::Id(Debugger::Constants::TASK_CATEGORY_DEBUGGER_DEBUGINFO));
|
||||
th->clearTasks(Core::Id(Debugger::Constants::TASK_CATEGORY_DEBUGGER_TEST));
|
||||
th->clearTasks(Core::Id(Debugger::Constants::TASK_CATEGORY_DEBUGGER_RUNTIME));
|
||||
th->clearTasks(Debugger::Constants::TASK_CATEGORY_DEBUGGER_DEBUGINFO);
|
||||
th->clearTasks(Debugger::Constants::TASK_CATEGORY_DEBUGGER_TEST);
|
||||
th->clearTasks(Debugger::Constants::TASK_CATEGORY_DEBUGGER_RUNTIME);
|
||||
|
||||
DebuggerStartParameters sp = sp0;
|
||||
if (!debuggerCore()->boolSetting(AutoEnrichParameters)) {
|
||||
@@ -486,8 +486,6 @@ DebuggerRunControl *DebuggerRunControlFactory::doCreate
|
||||
sp.debugSourceLocation.append(base + QLatin1String("qt5base/src/corelib"));
|
||||
sp.debugSourceLocation.append(base + QLatin1String("qt5base/src/gui"));
|
||||
sp.debugSourceLocation.append(base + QLatin1String("qt5base/src/network"));
|
||||
sp.debugSourceLocation.append(base + QLatin1String("qt5base/src/v8"));
|
||||
sp.debugSourceLocation.append(base + QLatin1String("qt5declarative/src/qml"));
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -4870,8 +4870,12 @@ void GdbEngine::startGdb(const QStringList &args)
|
||||
+ " " + it.value().toLocal8Bit());
|
||||
|
||||
// Spaces just will not work.
|
||||
foreach (const QString &src, sp.debugSourceLocation)
|
||||
foreach (const QString &src, sp.debugSourceLocation) {
|
||||
if (QDir(src).exists())
|
||||
postCommand("directory " + src.toLocal8Bit());
|
||||
else
|
||||
showMessage(_("# directory does not exist: ") + src, LogInput);
|
||||
}
|
||||
|
||||
const QByteArray sysroot = sp.sysRoot.toLocal8Bit();
|
||||
if (!sysroot.isEmpty()) {
|
||||
|
Reference in New Issue
Block a user