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
Tobias Hunger
qt-creator
Commits
93876009
Commit
93876009
authored
Feb 01, 2010
by
hjk
Browse files
debugger: fallback for assembler listing in the presence of bad debug info
parent
5f8f61bb
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/debugger/gdb/gdbengine.cpp
View file @
93876009
...
...
@@ -3513,8 +3513,19 @@ void GdbEngine::handleFetchDisassemblerByLine(const GdbResponse &response)
else
if
(
lines
.
children
().
size
()
==
1
&&
lines
.
childAt
(
0
).
findChild
(
"line"
).
data
()
==
"0"
)
fetchDisassemblerByAddress
(
ac
.
agent
,
true
);
else
ac
.
agent
->
setContents
(
parseDisassembler
(
lines
));
else
{
QString
contents
=
parseDisassembler
(
lines
);
if
(
ac
.
agent
->
contentsCoversAddress
(
contents
))
{
// All is well.
ac
.
agent
->
setContents
(
contents
);
}
else
{
// Can happen e.g. for initializer list on symbian/rvct where
// we get a file name and line number but where the 'fully
// disassembled function' does not cover the code in the
// initializer list. Fall back needed:
fetchDisassemblerByAddress
(
ac
.
agent
,
true
);
}
}
}
else
{
// 536^error,msg="mi_cmd_disassemble: Invalid line number"
QByteArray
msg
=
response
.
data
.
findChild
(
"msg"
).
data
();
...
...
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