forked from qt-creator/qt-creator
Debugger: Add -file-exec-file when opening a core dump
-file-symbol-file alone doesn't cover all cases. Run -file-exec-file too. Task-number: QTCREATORBUG-24541 Change-Id: Id4d8f7057f845bce32b28cc8f4db0eadcfcfab28 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
committed by
Orgad Shaneh
parent
c109b60cdf
commit
ac32cf56a1
@@ -4194,6 +4194,9 @@ void GdbEngine::setupInferior()
|
||||
// Do that first, otherwise no symbols are loaded.
|
||||
QFileInfo fi = executable.toFileInfo();
|
||||
QString path = fi.absoluteFilePath();
|
||||
// This is *not* equivalent to -file-exec-and-symbols. If the file is not executable
|
||||
// (contains only debugging symbols), this should still work.
|
||||
runCommand({"-file-exec-file \"" + path + '"'});
|
||||
runCommand({"-file-symbol-file \"" + path + '"',
|
||||
CB(handleFileExecAndSymbols)});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user