forked from qt-creator/qt-creator
Debugger: Use -file-symbol-file for cores, not for remote debugging
In 5467faa0d7
the replacement of -file-exec-and-symbols with
-file-symbol-file accidentally ended up in the wrong branch.
Task-number: QTCREATORBUG-24996
Change-Id: I2d6cb5432c0b11b02c3f8d3517075a7c00b05c9f
Reviewed-by: Samuli Piippo <samuli.piippo@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -4165,7 +4165,7 @@ void GdbEngine::setupInferior()
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!symbolFile.isEmpty()) {
|
if (!symbolFile.isEmpty()) {
|
||||||
runCommand({"-file-symbol-file \"" + symbolFile + '"',
|
runCommand({"-file-exec-and-symbols \"" + symbolFile + '"',
|
||||||
CB(handleFileExecAndSymbols)});
|
CB(handleFileExecAndSymbols)});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -4197,7 +4197,7 @@ void GdbEngine::setupInferior()
|
|||||||
// Do that first, otherwise no symbols are loaded.
|
// Do that first, otherwise no symbols are loaded.
|
||||||
QFileInfo fi = executable.toFileInfo();
|
QFileInfo fi = executable.toFileInfo();
|
||||||
QString path = fi.absoluteFilePath();
|
QString path = fi.absoluteFilePath();
|
||||||
runCommand({"-file-exec-and-symbols \"" + path + '"',
|
runCommand({"-file-symbol-file \"" + path + '"',
|
||||||
CB(handleFileExecAndSymbols)});
|
CB(handleFileExecAndSymbols)});
|
||||||
|
|
||||||
} else if (isTermEngine()) {
|
} else if (isTermEngine()) {
|
||||||
|
Reference in New Issue
Block a user