forked from qt-creator/qt-creator
Debugger: Avoid triggering Qt internal warning
Passing an empty string to QFile::exists() results in 'Empty filename passed to function' to be printed on the commandline. Change-Id: I028f0ec18447642b30be1a51f4c70b6ae18d45b1 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -4034,7 +4034,7 @@ void GdbEngine::handleDebugInfoLocation(const DebuggerResponse &response)
|
||||
{
|
||||
if (response.resultClass == ResultDone) {
|
||||
const QString debugInfoLocation = runParameters().debugInfoLocation;
|
||||
if (QFile::exists(debugInfoLocation)) {
|
||||
if (!debugInfoLocation.isEmpty() && QFile::exists(debugInfoLocation)) {
|
||||
const QString curDebugInfoLocations = response.consoleStreamOutput.split('"').value(1);
|
||||
QString cmd = "set debug-file-directory " + debugInfoLocation;
|
||||
if (!curDebugInfoLocations.isEmpty())
|
||||
|
||||
Reference in New Issue
Block a user