Debugger: Allow terminals for sessions started from command line

Change-Id: I43751fa90e54cd1d93b97822568d21c90118fb23
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
This commit is contained in:
hjk
2015-09-04 11:32:42 +02:00
parent 2f819ec841
commit 1f380798b6
2 changed files with 4 additions and 3 deletions

View File

@@ -1116,7 +1116,7 @@ bool DebuggerPluginPrivate::parseArgument(QStringList::const_iterator &it,
{
const QString &option = *it;
// '-debug <pid>'
// '-debug <exe>[,server=<server:port>][,core=<core>][,kit=<kit>]'
// '-debug <exe>[,server=<server:port>][,core=<core>][,kit=<kit>][,terminal={0,1}]'
if (*it == _("-debug")) {
++it;
if (it == cend) {
@@ -1159,6 +1159,8 @@ bool DebuggerPluginPrivate::parseArgument(QStringList::const_iterator &it,
rp.coreFile = val;
rp.displayName = tr("Core file \"%1\"").arg(rp.coreFile);
rp.startMessage = tr("Attaching to core file %1.").arg(rp.coreFile);
} else if (key == QLatin1String("terminal")) {
rp.useTerminal = bool(val.toInt());
} else if (key == QLatin1String("kit")) {
kit = KitManager::find(Id::fromString(val));
}