From 4ac7bb5a01962318c7fdb18583f7b0cc0280a716 Mon Sep 17 00:00:00 2001 From: hjk Date: Fri, 27 Nov 2020 07:32:32 +0100 Subject: [PATCH] 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 Reviewed-by: Christian Stenger --- src/plugins/debugger/gdb/gdbengine.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/debugger/gdb/gdbengine.cpp b/src/plugins/debugger/gdb/gdbengine.cpp index af373a1de15..8786dbd543f 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()) {