From 4331fe7c569fa164e3ecc2913b8338da401ccfac Mon Sep 17 00:00:00 2001 From: hjk <qtc-committer@nokia.com> Date: Fri, 26 Nov 2010 14:35:36 +0100 Subject: [PATCH] debugger: output a log message for spurious SIGTRAP --- src/plugins/debugger/gdb/gdbengine.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/plugins/debugger/gdb/gdbengine.cpp b/src/plugins/debugger/gdb/gdbengine.cpp index 87a8dd52ea0..f3b81812776 100644 --- a/src/plugins/debugger/gdb/gdbengine.cpp +++ b/src/plugins/debugger/gdb/gdbengine.cpp @@ -1443,9 +1443,13 @@ void GdbEngine::handleStop1(const GdbMi &data) QByteArray meaning = data.findChild("signal-meaning").data(); // Ignore these as they are showing up regularly when // stopping debugging. - if (name != STOP_SIGNAL - && (startParameters().startMode != AttachToRemote - || name != CROSS_STOP_SIGNAL)) { + if (name == STOP_SIGNAL) { + showMessage(_(STOP_SIGNAL " CONSIDERED HARMLESS. CONTINUING.")); + } else if (startParameters().startMode == AttachToRemote + && name == CROSS_STOP_SIGNAL) { + showMessage(_(CROSS_STOP_SIGNAL " CONSIDERED HARMLESS. CONTINUING.")); + } else { + showMessage(_("HANDLING SIGNAL" + name)); showStoppedBySignalMessageBox(_(meaning), _(name)); if (!name.isEmpty() && !meaning.isEmpty()) reasontr = msgStoppedBySignal(_(meaning), _(name)); -- GitLab