Skip to content
GitLab
Menu
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
741a3e8e
Commit
741a3e8e
authored
Dec 03, 2008
by
hjk
Browse files
small refactoring
parent
9c19ec02
Changes
2
Show whitespace changes
Inline
Side-by-side
src/plugins/debugger/gdbengine.cpp
View file @
741a3e8e
...
...
@@ -3647,11 +3647,16 @@ void GdbEngine::handleStackListLocals(const GdbResultRecord &record)
// stage 2/2
// There could be shadowed variables
QHash
<
QString
,
int
>
seen
;
QList
<
GdbMi
>
locals
=
record
.
data
.
findChild
(
"locals"
).
children
();
locals
+=
m_currentFunctionArgs
;
setLocals
(
locals
);
}
void
GdbEngine
::
setLocals
(
const
QList
<
GdbMi
>
&
locals
)
{
//qDebug() << m_varToType;
QHash
<
QString
,
int
>
seen
;
foreach
(
const
GdbMi
&
item
,
locals
)
{
#ifdef Q_OS_MAC
...
...
src/plugins/debugger/gdbengine.h
View file @
741a3e8e
...
...
@@ -326,6 +326,7 @@ private:
void
handleVarListChildrenHelper
(
const
GdbMi
&
child
,
const
WatchData
&
parent
);
void
setWatchDataType
(
WatchData
&
data
,
const
GdbMi
&
mi
);
void
setLocals
(
const
QList
<
GdbMi
>
&
locals
);
QString
m_editedData
;
int
m_pendingRequests
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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