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
971c1999
Commit
971c1999
authored
Apr 09, 2009
by
hjk
Browse files
debugger: provide an entry saying <no information> if an object has no
children (or no debug information available)
parent
cb75dd05
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/debugger/gdbengine.cpp
View file @
971c1999
...
...
@@ -3955,9 +3955,23 @@ void GdbEngine::handleVarListChildren(const GdbResultRecord &record,
foreach
(
const
GdbMi
&
child
,
children
.
children
())
handleVarListChildrenHelper
(
child
,
data
);
if
(
!
isAccessSpecifier
(
data
.
variable
.
split
(
'.'
).
takeLast
()))
{
if
(
children
.
children
().
isEmpty
())
{
// happens e.g. if no debug information is present or
// if the class really has no children
WatchData
data1
;
data1
.
iname
=
data
.
iname
+
".child"
;
data1
.
value
=
tr
(
"<no information>"
);
data1
.
childCount
=
0
;
data1
.
setAllUnneeded
();
insertData
(
data1
);
data
.
setAllUnneeded
();
insertData
(
data
);
}
else
if
(
!
isAccessSpecifier
(
data
.
variable
.
split
(
'.'
).
takeLast
()))
{
data
.
setChildrenUnneeded
();
insertData
(
data
);
}
else
{
// this skips the spurious "public", "private" etc levels
// gdb produces
}
}
else
if
(
record
.
resultClass
==
GdbResultError
)
{
data
.
setError
(
record
.
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