forked from qt-creator/qt-creator
Debugger[CDB]: Do not dump symbols with memory-read-error.
Fix a potential crash when accessing their nodes.
This commit is contained in:
@@ -1694,6 +1694,8 @@ unsigned dumpSimpleType(SymbolGroupNode *n, const SymbolGroupValueContext &ctx,
|
|||||||
|
|
||||||
// Prefix by pointer value
|
// Prefix by pointer value
|
||||||
const SymbolGroupValue v(n, ctx);
|
const SymbolGroupValue v(n, ctx);
|
||||||
|
if (!v) // Value as such has memory read error?
|
||||||
|
return SymbolGroupNode::SimpleDumperFailed;
|
||||||
if (SymbolGroupValue::isPointerType(v.type()))
|
if (SymbolGroupValue::isPointerType(v.type()))
|
||||||
if (const ULONG64 pointerValue = v.pointerValue())
|
if (const ULONG64 pointerValue = v.pointerValue())
|
||||||
str << std::showbase << std::hex << pointerValue << std::dec << std::noshowbase << ' ';
|
str << std::showbase << std::hex << pointerValue << std::dec << std::noshowbase << ' ';
|
||||||
|
|||||||
Reference in New Issue
Block a user