Commit 59a5ce90 authored by ussrhero's avatar ussrhero

fixed PdbProviderEnum test

parent 19d3d389
......@@ -24,7 +24,9 @@ const DiaSymbol::ValueNameEntry DiaSymbol::basicTypeName[] = {
_DEF_BASIC_TYPE(Complex),
_DEF_BASIC_TYPE(Bit),
_DEF_BASIC_TYPE(BSTR),
_DEF_BASIC_TYPE(Hresult)
_DEF_BASIC_TYPE(Hresult),
_DEF_BASIC_TYPE(Char16),
_DEF_BASIC_TYPE(Char32)
};
#undef _DEF_BASIC_TYPE
......
......@@ -645,6 +645,14 @@ TypeInfoPtr TypeInfo::getBaseTypeInfo( SymbolPtr &symbol )
{
symName = L"Double";
}
else if (symName == L"Char16")
{
symName = L"UInt2B";
}
else if (symName == L"Char32")
{
symName = L"UInt4B";
}
return getBaseTypeInfo( symName, getPtrSizeBySymbol(symbol) );
}
......@@ -1868,19 +1876,19 @@ TypeInfoSymbolEnum::TypeInfoSymbolEnum(SymbolSessionPtr& symSession, const std::
m_index = 0;
SymbolPtr symScope = symSession->getSymbolScope();
size_t symCount = symScope->getChildCount();
for ( size_t index = 0; index < symCount; index++)
for (size_t index = 0; index < symCount; index++)
{
SymbolPtr sym = symScope->getChildByIndex(index);
if (!isTypeTag(sym->getSymTag()) )
if (!isTypeTag(sym->getSymTag()))
continue;
std::wstring symName = sym->getName();
if ( mask.empty() || fnmatch(mask, symName ) )
if (mask.empty() || fnmatch(mask, symName))
{
m_typeList.push_back( loadType(sym) );
m_typeList.push_back(loadType(sym));
}
}
}
......
Markdown is supported
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