Changeset View
Changeset View
Standalone View
Standalone View
debuggers/common/mivariablecontroller.cpp
Show First 20 Lines • Show All 104 Lines • ▼ Show 20 Line(s) | 104 | if (v) { | |||
---|---|---|---|---|---|
105 | v->handleUpdate(var); | 105 | v->handleUpdate(var); | ||
106 | } | 106 | } | ||
107 | } | 107 | } | ||
108 | } | 108 | } | ||
109 | 109 | | |||
110 | class StackListArgumentsHandler : public MICommandHandler | 110 | class StackListArgumentsHandler : public MICommandHandler | ||
111 | { | 111 | { | ||
112 | public: | 112 | public: | ||
113 | StackListArgumentsHandler(QStringList localsName) | 113 | explicit StackListArgumentsHandler(QStringList localsName) | ||
114 | : m_localsName(localsName) | 114 | : m_localsName(localsName) | ||
115 | {} | 115 | {} | ||
116 | 116 | | |||
117 | void handle(const ResultRecord &r) override | 117 | void handle(const ResultRecord &r) override | ||
118 | { | 118 | { | ||
119 | if (!KDevelop::ICore::self()->debugController()) return; //happens on shutdown | 119 | if (!KDevelop::ICore::self()->debugController()) return; //happens on shutdown | ||
120 | 120 | | |||
121 | if (r.hasField("stack-args") && r["stack-args"].size() > 0) { | 121 | if (r.hasField("stack-args") && r["stack-args"].size() > 0) { | ||
Show All 12 Lines | |||||
134 | 134 | | |||
135 | private: | 135 | private: | ||
136 | QStringList m_localsName; | 136 | QStringList m_localsName; | ||
137 | }; | 137 | }; | ||
138 | 138 | | |||
139 | class StackListLocalsHandler : public MICommandHandler | 139 | class StackListLocalsHandler : public MICommandHandler | ||
140 | { | 140 | { | ||
141 | public: | 141 | public: | ||
142 | StackListLocalsHandler(MIDebugSession *session) | 142 | explicit StackListLocalsHandler(MIDebugSession *session) | ||
143 | : m_session(session) | 143 | : m_session(session) | ||
144 | {} | 144 | {} | ||
145 | 145 | | |||
146 | void handle(const ResultRecord &r) override | 146 | void handle(const ResultRecord &r) override | ||
147 | { | 147 | { | ||
148 | if (r.hasField("locals")) { | 148 | if (r.hasField("locals")) { | ||
149 | const Value& locals = r["locals"]; | 149 | const Value& locals = r["locals"]; | ||
150 | 150 | | |||
▲ Show 20 Lines • Show All 107 Lines • Show Last 20 Lines |