Commit 893c4022 authored by hjk's avatar hjk Committed by hjk
Browse files

debugger: don't let the user take snapshots on mac

Task-number: QTCREATORBUG-5166
Change-Id: I1dbb70d5f14f1d1ad79024acd82f6dc72f483ca4
Reviewed-on: http://codereview.qt.nokia.com/595

Reviewed-by: default avatarQt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: default avatarhjk <qthjk@ovi.com>
parent 29c77b26
......@@ -1990,6 +1990,10 @@ unsigned GdbEngine::debuggerCapabilities() const
if (startParameters().startMode == AttachCore)
return caps;
// FIXME: Remove in case we have gdb 7.x on Mac.
if (startParameters().toolChainAbi.os() == Abi::MacOS)
return caps;
return caps | SnapshotCapability;
}
......@@ -3492,7 +3496,7 @@ void GdbEngine::createSnapshot()
fileName = tf.fileName();
tf.close();
postCommand("gcore " + fileName.toLocal8Bit(),
NeedsStop, CB(handleMakeSnapshot), fileName);
NeedsStop|ConsoleCommand, CB(handleMakeSnapshot), fileName);
} else {
showMessageBox(QMessageBox::Critical, tr("Snapshot Creation Error"),
tr("Cannot create snapshot file."));
......
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