aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/debugger/debuggerplugin.cpp
diff options
context:
space:
mode:
authorMarcus Tillmanns <[email protected]>2023-02-02 14:27:50 +0100
committerMarcus Tillmanns <[email protected]>2023-02-07 12:31:40 +0000
commit96ebe93ecb529cc8d31cb743f6c3970fc55ae07b (patch)
tree2b5397562e2a8465d2ccc5ec0eb3d64b20cc5a93 /src/plugins/debugger/debuggerplugin.cpp
parent1e92039dc1274947929137d83e33ca1e1dac0af9 (diff)
Debugger: Rebuild AttachCoreDialog
The old dialog was based on local vs. remote file paths. These days we can simply treat them the same. If the selected files are not on the same device as the debuggger they will be copied first. Change-Id: If5ec93d1e1e49c51b3032fec8384682d2a5e35b4 Reviewed-by: hjk <[email protected]>
Diffstat (limited to 'src/plugins/debugger/debuggerplugin.cpp')
-rw-r--r--src/plugins/debugger/debuggerplugin.cpp17
1 files changed, 6 insertions, 11 deletions
diff --git a/src/plugins/debugger/debuggerplugin.cpp b/src/plugins/debugger/debuggerplugin.cpp
index ae4532b2bd5..4e3d00298bf 100644
--- a/src/plugins/debugger/debuggerplugin.cpp
+++ b/src/plugins/debugger/debuggerplugin.cpp
@@ -1521,31 +1521,26 @@ void DebuggerPluginPrivate::attachCore()
if (!lastExternalKit.isEmpty())
dlg.setKitId(Id::fromString(lastExternalKit));
dlg.setSymbolFile(FilePath::fromSettings(configValue("LastExternalExecutableFile")));
- dlg.setLocalCoreFile(FilePath::fromSettings(configValue("LastLocalCoreFile")));
- dlg.setRemoteCoreFile(FilePath::fromSettings(configValue("LastRemoteCoreFile")));
+ dlg.setCoreFile(FilePath::fromSettings(configValue("LastLocalCoreFile")));
dlg.setOverrideStartScript(FilePath::fromSettings(configValue("LastExternalStartScript")));
dlg.setSysRoot(FilePath::fromSettings(configValue("LastSysRoot")));
- dlg.setForceLocalCoreFile(configValue("LastForceLocalCoreFile").toBool());
if (dlg.exec() != QDialog::Accepted)
return;
setConfigValue("LastExternalExecutableFile", dlg.symbolFile().toSettings());
- setConfigValue("LastLocalCoreFile", dlg.localCoreFile().toSettings());
- setConfigValue("LastRemoteCoreFile", dlg.remoteCoreFile().toSettings());
+ setConfigValue("LastLocalCoreFile", dlg.coreFile().toSettings());
setConfigValue("LastExternalKit", dlg.kit()->id().toSetting());
setConfigValue("LastExternalStartScript", dlg.overrideStartScript().toSettings());
setConfigValue("LastSysRoot", dlg.sysRoot().toSettings());
- setConfigValue("LastForceLocalCoreFile", dlg.forcesLocalCoreFile());
auto runControl = new RunControl(ProjectExplorer::Constants::DEBUG_RUN_MODE);
runControl->setKit(dlg.kit());
- runControl->setDisplayName(Tr::tr("Core file \"%1\"")
- .arg(dlg.useLocalCoreFile() ? dlg.localCoreFile().toUserOutput()
- : dlg.remoteCoreFile().toUserOutput()));
+ runControl->setDisplayName(Tr::tr("Core file \"%1\"").arg(dlg.coreFile().toUserOutput()));
auto debugger = new DebuggerRunTool(runControl);
- debugger->setInferiorExecutable(dlg.symbolFile());
- debugger->setCoreFilePath(dlg.localCoreFile());
+
+ debugger->setInferiorExecutable(dlg.symbolFileCopy());
+ debugger->setCoreFilePath(dlg.coreFileCopy());
debugger->setStartMode(AttachToCore);
debugger->setCloseMode(DetachAtClose);
debugger->setOverrideStartScript(dlg.overrideStartScript());