From 7782e26ae69c67c040d5fed53613fe9ac9df698a Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen <oswald.buddenhagen@nokia.com> Date: Tue, 13 Oct 2009 17:16:33 +0200 Subject: [PATCH] comment out handleExecRunToFunction() it is currently unused. do not just remove it, as hjk says he wants to revive it. --- src/plugins/debugger/gdb/gdbengine.cpp | 30 +++++++++++++------------- src/plugins/debugger/gdb/gdbengine.h | 2 +- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/src/plugins/debugger/gdb/gdbengine.cpp b/src/plugins/debugger/gdb/gdbengine.cpp index f45b63f648e..4be8e4a38e2 100644 --- a/src/plugins/debugger/gdb/gdbengine.cpp +++ b/src/plugins/debugger/gdb/gdbengine.cpp @@ -937,21 +937,21 @@ void GdbEngine::handleExecJumpToLine(const GdbResponse &response) } #endif -void GdbEngine::handleExecRunToFunction(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() == InferiorStopping, qDebug() << state()) - setState(InferiorStopped); - showStatusMessage(tr("Function reached. Stopped.")); - GdbMi frame = response.data.findChild("frame"); - StackFrame f = parseStackFrame(frame, 0); - gotoLocation(f, true); -} +//void GdbEngine::handleExecRunToFunction(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() == InferiorStopping, qDebug() << state()) +// setState(InferiorStopped); +// 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) { diff --git a/src/plugins/debugger/gdb/gdbengine.h b/src/plugins/debugger/gdb/gdbengine.h index 8c5b3020cdb..ca44662baeb 100644 --- a/src/plugins/debugger/gdb/gdbengine.h +++ b/src/plugins/debugger/gdb/gdbengine.h @@ -268,7 +268,7 @@ private: void handleFileExecAndSymbols(const GdbResponse &response); void handleExecContinue(const GdbResponse &response); void handleExecJumpToLine(const GdbResponse &response); - void handleExecRunToFunction(const GdbResponse &response); +// void handleExecRunToFunction(const GdbResponse &response); void handleInfoShared(const GdbResponse &response); void handleShowVersion(const GdbResponse &response); void handleQueryPwd(const GdbResponse &response); -- GitLab