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
074d477f
Commit
074d477f
authored
Oct 16, 2009
by
Erik Verbruggen
Browse files
Got the gdb engine to compile on Mac.
Reviewed by: Friedemann Kleint
parent
25ee70bb
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/debugger/gdb/gdbengine.cpp
View file @
074d477f
...
...
@@ -3497,8 +3497,11 @@ void GdbEngine::handleStackListLocals(const GdbResponse &response)
&
uninitializedVariables
);
}
QList
<
WatchData
>
list
;
foreach
(
const
GdbMi
&
item
,
locals
)
list
.
push_back
(
localVariable
(
item
,
uninitializedVariables
,
&
seen
));
foreach
(
const
GdbMi
&
item
,
locals
)
{
const
WatchData
data
=
localVariable
(
item
,
uninitializedVariables
,
&
seen
);
if
(
data
.
isValid
())
list
.
push_back
(
data
);
}
manager
()
->
watchHandler
()
->
insertBulkData
(
list
);
manager
()
->
watchHandler
()
->
updateWatchers
();
}
...
...
@@ -3518,7 +3521,7 @@ WatchData GdbEngine::localVariable(const GdbMi &item,
foreach
(
const
GdbMi
&
child
,
item
.
children
())
numExps
+=
int
(
child
.
name
()
==
"exp"
);
if
(
numExps
>
1
)
continue
;
return
WatchData
()
;
QByteArray
name
=
item
.
findChild
(
"exp"
).
data
();
#else
QByteArray
name
=
item
.
findChild
(
"name"
).
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