From bc53ce72a4eee3a038428d8e076c8915a214aea8 Mon Sep 17 00:00:00 2001 From: hjk <qtc-committer@nokia.com> Date: Wed, 1 Dec 2010 11:27:31 +0100 Subject: [PATCH] debugger: remove dead code --- src/plugins/debugger/gdb/gdbengine.cpp | 21 +-------------------- src/plugins/debugger/gdb/gdbengine.h | 1 - 2 files changed, 1 insertion(+), 21 deletions(-) diff --git a/src/plugins/debugger/gdb/gdbengine.cpp b/src/plugins/debugger/gdb/gdbengine.cpp index fb6e841566d..1dfe0e063c1 100644 --- a/src/plugins/debugger/gdb/gdbengine.cpp +++ b/src/plugins/debugger/gdb/gdbengine.cpp @@ -1071,24 +1071,6 @@ void GdbEngine::handleExecuteRunToLine(const GdbResponse &response) } } -/* -void GdbEngine::handleExecuteRunToFunction(const GdbResponse &response) -{ - // FIXME: remove this special case as soon as there's a real - // reason given when the temporary breakpoint is hit. - // reight now we get: - // 14*stopped,thread-id="1",frame={addr="0x0000000000403ce4", - // func="foo",args=[{name="str",value="@0x7fff0f450460"}], - // file="main.cpp",fullname="/tmp/g/main.cpp",line="37"} - QTC_ASSERT(state() == InferiorStopRequested, qDebug() << state()) - notifyInferiorStopOk(); - showStatusMessage(tr("Function reached. Stopped")); - GdbMi frame = response.data.findChild("frame"); - StackFrame f = parseStackFrame(frame, 0); - gotoLocation(f, true); -} -*/ - static bool isExitedReason(const QByteArray &reason) { return reason == "exited-normally" // inferior exited normally @@ -1426,7 +1408,7 @@ void GdbEngine::handleStop1(const GdbMi &data) const int bpNumber = gNumber.data().toInt(); const QByteArray threadId = data.findChild("thread-id").data(); const BreakpointId id = breakHandler()->findBreakpointByNumber(bpNumber); - showStatusMessage(msgBreakpointTriggered(id, bpNumber, QString::fromAscii(threadId))); + showStatusMessage(msgBreakpointTriggered(id, bpNumber, _(threadId))); } else { QString reasontr = msgStopped(_(reason)); if (reason == "signal-received" @@ -1959,7 +1941,6 @@ void GdbEngine::executeRunToFunction(const QString &functionName) postCommand("-break-insert -t " + functionName.toLatin1()); showStatusMessage(tr("Run to function %1 requested...").arg(functionName), 5000); continueInferiorInternal(); - //postCommand("-exec-continue", handleExecuteRunToFunction); } void GdbEngine::executeJumpToLine(const QString &fileName, int lineNumber) diff --git a/src/plugins/debugger/gdb/gdbengine.h b/src/plugins/debugger/gdb/gdbengine.h index d4e512c7d6e..90ce7ae0364 100644 --- a/src/plugins/debugger/gdb/gdbengine.h +++ b/src/plugins/debugger/gdb/gdbengine.h @@ -331,7 +331,6 @@ private: ////////// Inferior Management ////////// void handleExecuteReturn(const GdbResponse &response); void handleExecuteJumpToLine(const GdbResponse &response); void handleExecuteRunToLine(const GdbResponse &response); - //void handleExecuteRunToFunction(const GdbResponse &response); void maybeHandleInferiorPidChanged(const QString &pid); void handleInfoProc(const GdbResponse &response); -- GitLab