Commit 7782e26a authored by Oswald Buddenhagen's avatar Oswald Buddenhagen
Browse files

comment out handleExecRunToFunction()

it is currently unused. do not just remove it, as hjk says he wants to
revive it.
parent 885a425d
......@@ -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)
{
......
......@@ -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);
......
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