forked from qt-creator/qt-creator
Debugger: Only append ".exe" for symbol file if necessary
Only append the ".exe" suffix if the the symbol file cannot be found. Otherwise, this shows an unnecessary warning if an existing and valid executable file like *.bat or *.cmd is passed. Change-Id: I129c89deee9d63aefecc84d489ee08e81eaa11ab Reviewed-by: Michael Weghorn <m.weghorn@posteo.de> Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
committed by
David Schulz
parent
1f81f63b56
commit
b8d4a9bef8
@@ -2626,8 +2626,8 @@ void CppDebuggerEngine::validateRunParameters(DebuggerRunParameters &rp)
|
||||
&& rp.cppEngineType == CdbEngineType
|
||||
&& rp.startMode != AttachToRemoteServer) {
|
||||
QTC_ASSERT(!rp.symbolFile.isEmpty(), return);
|
||||
if (!rp.symbolFile.toString().endsWith(".exe", Qt::CaseInsensitive))
|
||||
rp.symbolFile = FileName::fromString(rp.symbolFile.toString() + ".exe");
|
||||
if (!rp.symbolFile.exists() && !rp.symbolFile.endsWith(".exe"))
|
||||
rp.symbolFile = rp.symbolFile.stringAppended(".exe");
|
||||
QString errorMessage;
|
||||
QStringList rc;
|
||||
if (getPDBFiles(rp.symbolFile.toString(), &rc, &errorMessage) && !rc.isEmpty())
|
||||
|
Reference in New Issue
Block a user