forked from qt-creator/qt-creator
debugger: do not show a dialog for SIGTRAP as this happens too often
when stopping debugging.
This commit is contained in:
@@ -1185,6 +1185,9 @@ void GdbEngine::handleAsyncOutput(const GdbMi &data)
|
||||
if (reason == "signal-received"
|
||||
&& theDebuggerBoolSetting(UseMessageBoxForSignals)) {
|
||||
QByteArray name = data.findChild("signal-name").data();
|
||||
// Ignore SIGTRAP as they are showing up regularily when
|
||||
// stopping debugging.
|
||||
if (name != "SIGTRAP") {
|
||||
QByteArray meaning = data.findChild("signal-meaning").data();
|
||||
QString msg = tr("<p>The inferior stopped because it received a "
|
||||
"signal from the Operating System.<p>"
|
||||
@@ -1197,6 +1200,7 @@ void GdbEngine::handleAsyncOutput(const GdbMi &data)
|
||||
mb->setAttribute(Qt::WA_DeleteOnClose);
|
||||
mb->show();
|
||||
}
|
||||
}
|
||||
|
||||
if (reason.isEmpty())
|
||||
q->showStatusMessage(tr("Stopped."));
|
||||
@@ -4130,7 +4134,6 @@ void GdbEngine::handleFetchDisassemblerByAddress1(const GdbResultRecord &record,
|
||||
void GdbEngine::handleFetchDisassemblerByAddress0(const GdbResultRecord &record,
|
||||
const QVariant &cookie)
|
||||
{
|
||||
bool ok = true;
|
||||
DisassemblerAgentCookie ac = cookie.value<DisassemblerAgentCookie>();
|
||||
QTC_ASSERT(ac.agent, return);
|
||||
|
||||
|
Reference in New Issue
Block a user