OSDN Git Service

comment out handleExecRunToFunction()
authorOswald Buddenhagen <oswald.buddenhagen@nokia.com>
Tue, 13 Oct 2009 15:16:33 +0000 (17:16 +0200)
committerOswald Buddenhagen <oswald.buddenhagen@nokia.com>
Tue, 13 Oct 2009 18:42:11 +0000 (20:42 +0200)
it is currently unused. do not just remove it, as hjk says he wants to
revive it.

src/plugins/debugger/gdb/gdbengine.cpp
src/plugins/debugger/gdb/gdbengine.h

index f45b63f..4be8e4a 100644 (file)
@@ -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)
 {
index 8c5b302..ca44662 100644 (file)
@@ -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);