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-by: default avatarQt Sanity Bot <>
Reviewed-by: default avatarhjk <>
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();
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."));
Supports Markdown
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