Commit 1f380798 authored by hjk's avatar hjk

Debugger: Allow terminals for sessions started from command line

Change-Id: I43751fa90e54cd1d93b97822568d21c90118fb23
Reviewed-by: default avatarChristian Stenger <christian.stenger@theqtcompany.com>
parent 2f819ec8
...@@ -22,8 +22,7 @@ ...@@ -22,8 +22,7 @@
\"Description\" : \"Attach to local process\" \"Description\" : \"Attach to local process\"
}, },
{ {
\"Name\" : \"-debug\", \"Name\" : \"-debug <executable>[,kit=<kit>][,terminal={0,1}]\",
\"Parameter\" : \"executable\",
\"Description\" : \"Start and debug executable\" \"Description\" : \"Start and debug executable\"
}, },
{ {
......
...@@ -1116,7 +1116,7 @@ bool DebuggerPluginPrivate::parseArgument(QStringList::const_iterator &it, ...@@ -1116,7 +1116,7 @@ bool DebuggerPluginPrivate::parseArgument(QStringList::const_iterator &it,
{ {
const QString &option = *it; const QString &option = *it;
// '-debug <pid>' // '-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")) { if (*it == _("-debug")) {
++it; ++it;
if (it == cend) { if (it == cend) {
...@@ -1159,6 +1159,8 @@ bool DebuggerPluginPrivate::parseArgument(QStringList::const_iterator &it, ...@@ -1159,6 +1159,8 @@ bool DebuggerPluginPrivate::parseArgument(QStringList::const_iterator &it,
rp.coreFile = val; rp.coreFile = val;
rp.displayName = tr("Core file \"%1\"").arg(rp.coreFile); rp.displayName = tr("Core file \"%1\"").arg(rp.coreFile);
rp.startMessage = tr("Attaching to 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")) { } else if (key == QLatin1String("kit")) {
kit = KitManager::find(Id::fromString(val)); kit = KitManager::find(Id::fromString(val));
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment