mirror of
https://github.com/ivellioscolin/pykd.git
synced 2025-04-20 03:23:23 +08:00
[0.1.x] fixed : issue #10591 ( bit field returns wrong value )
git-svn-id: https://pykd.svn.codeplex.com/svn@75151 9b283d60-5439-405e-af05-b73fd8c4d996
This commit is contained in:
parent
1c455d5327
commit
761ea0dcd3
@ -59,7 +59,7 @@ std::string DbgExtension::call( const std::wstring &command, const std::wstring
|
||||
|
||||
PyThreadState *pystate = PyEval_SaveThread();
|
||||
|
||||
hres = m_control->CallExtensionWide( m_handle, command.c_str(), NULL );
|
||||
hres = m_control->CallExtensionWide( m_handle, command.c_str(), params.c_str() );
|
||||
|
||||
PyEval_RestoreThread( pystate );
|
||||
|
||||
|
@ -273,7 +273,7 @@ BaseTypeVariant BitFieldVar::getValue()
|
||||
m_varData->read( &val, getSize() );
|
||||
|
||||
val >>= m_typeInfo->getBitOffset();
|
||||
val &= m_typeInfo->getBitWidth();
|
||||
val &= ( 1 << m_typeInfo->getBitWidth() ) - 1;
|
||||
|
||||
switch ( m_typeInfo->getSize() )
|
||||
{
|
||||
|
@ -70,10 +70,12 @@ if __name__ == "__main__":
|
||||
|
||||
print ""
|
||||
|
||||
suite = getTestSuite()
|
||||
#suite = getTestSuite()
|
||||
#suite = getTestSuite( "diatest.DiaTest.testFind" )
|
||||
#suite = getTestSuite( "typedvar.TypedVarTest.testTypeVarArg" )
|
||||
#suite = getTestSuite( "typeinfo.TypeInfoTest.testBitField" )
|
||||
#suite = getTestSuite( "typeinfo.TypeInfoTest.testCreateByName" )
|
||||
suite = getTestSuite( "typedvar.TypedVarTest.testBitField" )
|
||||
|
||||
unittest.TextTestRunner(stream=sys.stdout, verbosity=2).run( suite )
|
||||
|
||||
#raw_input("\npress return\n")
|
||||
raw_input("\npress return\n")
|
||||
|
Loading…
Reference in New Issue
Block a user