Commit 3669566b authored by Friedemann Kleint's avatar Friedemann Kleint
Browse files

Debugger[CDB]: Do not dump symbols with memory-read-error.

Fix a potential crash when accessing their nodes.
parent c3a6a3eb
......@@ -1694,6 +1694,8 @@ unsigned dumpSimpleType(SymbolGroupNode *n, const SymbolGroupValueContext &ctx,
// Prefix by pointer value
const SymbolGroupValue v(n, ctx);
if (!v) // Value as such has memory read error?
return SymbolGroupNode::SimpleDumperFailed;
if (SymbolGroupValue::isPointerType(v.type()))
if (const ULONG64 pointerValue = v.pointerValue())
str << std::showbase << std::hex << pointerValue << std::dec << std::noshowbase << ' ';
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