mirror of
https://github.com/ivellioscolin/pykd.git
synced 2025-04-29 20:03:33 +08:00
[0.1.x] fixed : typedVar __str__ converter - once again
git-svn-id: https://pykd.svn.codeplex.com/svn@74850 9b283d60-5439-405e-af05-b73fd8c4d996
This commit is contained in:
parent
1a87bf5e64
commit
2237694a8b
@ -222,7 +222,7 @@ std::string UdtTypedVar::print()
|
|||||||
{
|
{
|
||||||
std::stringstream sstr;
|
std::stringstream sstr;
|
||||||
|
|
||||||
sstr << "struct/class: " << m_typeInfo->getName() << " " << m_varData->asString();
|
sstr << "struct/class: " << m_typeInfo->getName() << " " << m_varData->asString() << std::endl;
|
||||||
|
|
||||||
for ( ULONG i = 0; i < m_typeInfo->getFieldCount(); ++i )
|
for ( ULONG i = 0; i < m_typeInfo->getFieldCount(); ++i )
|
||||||
{
|
{
|
||||||
|
@ -463,10 +463,10 @@ TypeInfoPtr UdtTypeInfo::getField( const std::string &fieldName )
|
|||||||
|
|
||||||
TypeInfoPtr UdtTypeInfo::getFieldByIndex( ULONG index )
|
TypeInfoPtr UdtTypeInfo::getFieldByIndex( ULONG index )
|
||||||
{
|
{
|
||||||
if ( index >= m_dia->getChildCount() )
|
if ( index >= m_dia->getChildCount(SymTagData) )
|
||||||
throw TypeException( m_dia->getName(), ": field not found" );
|
throw TypeException( m_dia->getName(), ": field not found" );
|
||||||
|
|
||||||
pyDia::SymbolPtr field = m_dia->getChildByIndex(index);
|
pyDia::SymbolPtr field = m_dia->getChildByIndex(index, SymTagData);
|
||||||
|
|
||||||
if ( !field )
|
if ( !field )
|
||||||
throw TypeException( m_dia->getName(), ": field not found" );
|
throw TypeException( m_dia->getName(), ": field not found" );
|
||||||
|
Loading…
Reference in New Issue
Block a user