Commit 4331fe7c authored by hjk's avatar hjk
Browse files

debugger: output a log message for spurious SIGTRAP

parent f3f95c69
...@@ -1443,9 +1443,13 @@ void GdbEngine::handleStop1(const GdbMi &data) ...@@ -1443,9 +1443,13 @@ void GdbEngine::handleStop1(const GdbMi &data)
QByteArray meaning = data.findChild("signal-meaning").data(); QByteArray meaning = data.findChild("signal-meaning").data();
// Ignore these as they are showing up regularly when // Ignore these as they are showing up regularly when
// stopping debugging. // stopping debugging.
if (name != STOP_SIGNAL if (name == STOP_SIGNAL) {
&& (startParameters().startMode != AttachToRemote showMessage(_(STOP_SIGNAL " CONSIDERED HARMLESS. CONTINUING."));
|| name != CROSS_STOP_SIGNAL)) { } else if (startParameters().startMode == AttachToRemote
&& name == CROSS_STOP_SIGNAL) {
showMessage(_(CROSS_STOP_SIGNAL " CONSIDERED HARMLESS. CONTINUING."));
} else {
showMessage(_("HANDLING SIGNAL" + name));
showStoppedBySignalMessageBox(_(meaning), _(name)); showStoppedBySignalMessageBox(_(meaning), _(name));
if (!name.isEmpty() && !meaning.isEmpty()) if (!name.isEmpty() && !meaning.isEmpty())
reasontr = msgStoppedBySignal(_(meaning), _(name)); reasontr = msgStoppedBySignal(_(meaning), _(name));
......
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