forked from qt-creator/qt-creator
small refactoring
This commit is contained in:
@@ -3647,11 +3647,16 @@ void GdbEngine::handleStackListLocals(const GdbResultRecord &record)
|
|||||||
// stage 2/2
|
// stage 2/2
|
||||||
|
|
||||||
// There could be shadowed variables
|
// There could be shadowed variables
|
||||||
QHash<QString, int> seen;
|
|
||||||
QList<GdbMi> locals = record.data.findChild("locals").children();
|
QList<GdbMi> locals = record.data.findChild("locals").children();
|
||||||
locals += m_currentFunctionArgs;
|
locals += m_currentFunctionArgs;
|
||||||
|
|
||||||
|
setLocals(locals);
|
||||||
|
}
|
||||||
|
|
||||||
|
void GdbEngine::setLocals(const QList<GdbMi> &locals)
|
||||||
|
{
|
||||||
//qDebug() << m_varToType;
|
//qDebug() << m_varToType;
|
||||||
|
QHash<QString, int> seen;
|
||||||
|
|
||||||
foreach (const GdbMi &item, locals) {
|
foreach (const GdbMi &item, locals) {
|
||||||
#ifdef Q_OS_MAC
|
#ifdef Q_OS_MAC
|
||||||
|
@@ -326,6 +326,7 @@ private:
|
|||||||
void handleVarListChildrenHelper(const GdbMi &child,
|
void handleVarListChildrenHelper(const GdbMi &child,
|
||||||
const WatchData &parent);
|
const WatchData &parent);
|
||||||
void setWatchDataType(WatchData &data, const GdbMi &mi);
|
void setWatchDataType(WatchData &data, const GdbMi &mi);
|
||||||
|
void setLocals(const QList<GdbMi> &locals);
|
||||||
|
|
||||||
QString m_editedData;
|
QString m_editedData;
|
||||||
int m_pendingRequests;
|
int m_pendingRequests;
|
||||||
|
Reference in New Issue
Block a user