diff options
author | hjk <hjk@qt.io> | 2020-11-27 07:32:32 +0100 |
---|---|---|
committer | hjk <hjk@qt.io> | 2020-11-27 10:35:41 +0000 |
commit | 4ac7bb5a01962318c7fdb18583f7b0cc0280a716 (patch) | |
tree | 04141ccfcbd9dd66e62dfe26905257a2c7e3a00e | |
parent | 08972d1952a4247aadb2f56c22fb5ed5d13e18e0 (diff) |
Debugger: Use -file-symbol-file for cores, not for remote debugging
In 5467faa0d79 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>
-rw-r--r-- | src/plugins/debugger/gdb/gdbengine.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/debugger/gdb/gdbengine.cpp b/src/plugins/debugger/gdb/gdbengine.cpp index af373a1de1..8786dbd543 100644 --- a/src/plugins/debugger/gdb/gdbengine.cpp +++ b/src/plugins/debugger/gdb/gdbengine.cpp @@ -4165,7 +4165,7 @@ void GdbEngine::setupInferior() } if (!symbolFile.isEmpty()) { - runCommand({"-file-symbol-file \"" + symbolFile + '"', + runCommand({"-file-exec-and-symbols \"" + symbolFile + '"', CB(handleFileExecAndSymbols)}); } @@ -4197,7 +4197,7 @@ void GdbEngine::setupInferior() // Do that first, otherwise no symbols are loaded. QFileInfo fi = executable.toFileInfo(); QString path = fi.absoluteFilePath(); - runCommand({"-file-exec-and-symbols \"" + path + '"', + runCommand({"-file-symbol-file \"" + path + '"', CB(handleFileExecAndSymbols)}); } else if (isTermEngine()) { |