Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
bc53ce72
Commit
bc53ce72
authored
Dec 01, 2010
by
hjk
Browse files
debugger: remove dead code
parent
bdb94ad0
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/plugins/debugger/gdb/gdbengine.cpp
View file @
bc53ce72
...
...
@@ -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
)
...
...
src/plugins/debugger/gdb/gdbengine.h
View file @
bc53ce72
...
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment