mirror of
https://github.com/ivellioscolin/pykd.git
synced 2025-04-20 03:23:23 +08:00
[0.2.x] ~ TypeBuilder::createUnion - alignment is not necessary
git-svn-id: https://pykd.svn.codeplex.com/svn@82227 9b283d60-5439-405e-af05-b73fd8c4d996
This commit is contained in:
parent
78cab9cc49
commit
30837343b3
@ -17,9 +17,9 @@ TypeInfoPtr TypeBuilder::createStruct( const std::string &name, ULONG align )
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
TypeInfoPtr TypeBuilder::createUnion( const std::string &name, ULONG align )
|
||||
TypeInfoPtr TypeBuilder::createUnion( const std::string &name )
|
||||
{
|
||||
return TypeInfoPtr( new CustomUnion( name, m_ptrSize, align ? align : m_ptrSize ) );
|
||||
return TypeInfoPtr( new CustomUnion( name, m_ptrSize, m_ptrSize ) );
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
@ -41,7 +41,7 @@ public:
|
||||
|
||||
TypeInfoPtr createStruct( const std::string &name, ULONG align = 0 );
|
||||
|
||||
TypeInfoPtr createUnion( const std::string &name, ULONG align = 0);
|
||||
TypeInfoPtr createUnion( const std::string &name);
|
||||
|
||||
private:
|
||||
|
||||
|
@ -64,7 +64,6 @@ BOOST_PYTHON_FUNCTION_OVERLOADS( setHardwareBp_, setHardwareBp, 3, 4 );
|
||||
BOOST_PYTHON_FUNCTION_OVERLOADS( findSymbol_, TypeInfo::findSymbol, 1, 2 );
|
||||
|
||||
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS( TypeBuilder_createStruct, TypeBuilder::createStruct, 1, 2 );
|
||||
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS( TypeBuilder_createUnion, TypeBuilder::createUnion, 1, 2 );
|
||||
|
||||
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS( Module_enumSymbols, Module::enumSymbols, 0, 1 );
|
||||
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS( Module_enumTypes, Module::enumTypes, 0, 1 );
|
||||
@ -292,13 +291,6 @@ BOOST_PYTHON_MODULE( pykd )
|
||||
python::def( "setSymbolPath", &setSymbolPath, "Set current symbol path");
|
||||
python::def( "appendSymbolPath", &appendSymbolPath, "Append current symbol path");
|
||||
|
||||
//// custom types
|
||||
//python::def( "createStruct", &CustomStruct::create, CustomStruct_create( python::args( "name", "align", "ptrSize" ),
|
||||
// "Create empty structure. Use append() method for building" ) );
|
||||
//python::def( "createUnion", &CustomUnion::create, CustomUnion_create( python::args( "name", "ptrSize" ),
|
||||
// "Create empty union. Use append() method for building" ) );
|
||||
//python::def( "pVoid", &PtrToVoid, "Create \"Void*\" type" );
|
||||
|
||||
python::class_<intBase>( "intBase", "intBase", python::no_init )
|
||||
.def( python::init<python::object&>() )
|
||||
.def( "__eq__", &intBase::eq )
|
||||
@ -476,9 +468,9 @@ BOOST_PYTHON_MODULE( pykd )
|
||||
.add_property( "WChar", &TypeBuilder::getWChar )
|
||||
.add_property( "VoidPtr", &TypeBuilder::getVoidPtr )
|
||||
.def( "createStruct", &TypeBuilder::createStruct, TypeBuilder_createStruct( python::args( "name", "align" ),
|
||||
"create custom struct" ) )
|
||||
.def( "createUnion", &TypeBuilder::createUnion, TypeBuilder_createUnion( python::args( "name", "align" ),
|
||||
"create custom union" ) );
|
||||
"Create custom struct" ) )
|
||||
.def( "createUnion", &TypeBuilder::createUnion,
|
||||
"Create custom union" );
|
||||
|
||||
python::class_<CpuReg, python::bases<intBase> >(
|
||||
"cpuReg", "CPU regsiter class", boost::python::no_init )
|
||||
|
Loading…
Reference in New Issue
Block a user