Commit b38a89db authored by Niko Sams's avatar Niko Sams
Browse files

show error in variables view when gdb returns an error

don't use the returned msg from gdb as it has no real value
and refers to implementation details
("-var-create: unable to create variable object")

BUG: 235760
parent 6714fbbc
......@@ -100,14 +100,14 @@ public:
{
if (!m_variable) return;
bool hasValue = false;
GdbVariable* variable = m_variable.data();
variable->deleteChildren();
variable->setInScope(true);
if (r.reason == "error") {
/* Probably should mark this disabled, or something. */
variable->setShowError(true);
} else {
GdbVariable* variable = m_variable.data();
variable->deleteChildren();
variable->setInScope(true);
variable->setVarobj(r["name"].literal());
bool hasMore = false;
if (r.hasField("has_more") && r["has_more"].toInt())
// GDB swears there are more children. Trust it
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment