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
f6bf2e97
Commit
f6bf2e97
authored
Apr 30, 2009
by
Oswald Buddenhagen
Browse files
simplify conditions
parent
3e01e573
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/debugger/gdbengine.cpp
View file @
f6bf2e97
...
...
@@ -3889,12 +3889,14 @@ void GdbEngine::handleVarListChildrenHelper(const GdbMi &item,
data
.
setChildrenUnneeded
();
data
.
name
=
_
(
exp
);
if
(
isPointerType
(
parent
.
type
)
&&
data
.
type
==
data
.
name
)
{
data
.
exp
=
_
(
"*("
)
+
parent
.
exp
+
_c
(
')'
);
data
.
name
=
_
(
"*"
)
+
parent
.
name
;
}
else
if
(
data
.
type
==
data
.
name
)
{
// A type we derive from? gdb crashes when creating variables here
data
.
exp
=
parent
.
exp
;
if
(
data
.
type
==
data
.
name
)
{
if
(
isPointerType
(
parent
.
type
))
{
data
.
exp
=
_
(
"*("
)
+
parent
.
exp
+
_c
(
')'
);
data
.
name
=
_
(
"*"
)
+
parent
.
name
;
}
else
{
// A type we derive from? gdb crashes when creating variables here
data
.
exp
=
parent
.
exp
;
}
}
else
if
(
exp
.
startsWith
(
"*"
))
{
// A pointer
data
.
exp
=
_
(
"*("
)
+
parent
.
exp
+
_c
(
')'
);
...
...
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