forked from qt-creator/qt-creator
Debugger: Avoid having an empty tab title when attaching to core
Change-Id: I7327ef6f350fbff3c1beffe51c65d7ce708caae0 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -1597,11 +1597,11 @@ void DebuggerPluginPrivate::attachCore()
|
||||
|
||||
auto runControl = new RunControl(ProjectExplorer::Constants::DEBUG_RUN_MODE);
|
||||
runControl->setKit(dlg.kit());
|
||||
runControl->setDisplayName(tr("Core file \"%1\"")
|
||||
.arg(dlg.useLocalCoreFile() ? dlg.localCoreFile() : dlg.remoteCoreFile()));
|
||||
auto debugger = new DebuggerRunTool(runControl);
|
||||
debugger->setInferiorExecutable(dlg.symbolFile());
|
||||
debugger->setCoreFileName(dlg.localCoreFile());
|
||||
debugger->setRunControlName(tr("Core file \"%1\"")
|
||||
.arg(dlg.useLocalCoreFile() ? dlg.localCoreFile() : dlg.remoteCoreFile()));
|
||||
debugger->setStartMode(AttachCore);
|
||||
debugger->setCloseMode(DetachAtClose);
|
||||
debugger->setOverrideStartScript(dlg.overrideStartScript());
|
||||
|
||||
Reference in New Issue
Block a user