forked from qt-creator/qt-creator
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: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
@@ -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."));
|
||||
|
||||
Reference in New Issue
Block a user