Debugger[New CDB]: Fix QMap.

Determine field offset of map node using GetFieldOffset.
Qualify with full module.
This commit is contained in:
Friedemann Kleint
2011-01-04 10:53:53 +01:00
parent 7c5d89ae8a
commit d9ec7dd0a6
3 changed files with 17 additions and 8 deletions

View File

@@ -267,6 +267,14 @@ unsigned SymbolGroupValue::intSize()
return is;
}
unsigned SymbolGroupValue::fieldOffset(const char *type, const char *field)
{
ULONG rc = 0;
if (GetFieldOffset(type, field, &rc))
return 0;
return rc;
}
std::string SymbolGroupValue::stripPointerType(const std::string &t)
{
return isPointerType(t) ? t.substr(0, t.size() - 2) : t;