mirror of
https://github.com/ivellioscolin/pykd.git
synced 2025-04-21 21:03:23 +08:00
[0.3.x] updated : tests
git-svn-id: https://pykd.svn.codeplex.com/svn@83945 9b283d60-5439-405e-af05-b73fd8c4d996
This commit is contained in:
parent
61c7bfa56f
commit
2288f1aeb0
@ -259,12 +259,12 @@ BOOST_PYTHON_MODULE( pykd )
|
|||||||
// "Return a list of the typedVar class instances. Each item represents an item of the counted array in the target memory" );
|
// "Return a list of the typedVar class instances. Each item represents an item of the counted array in the target memory" );
|
||||||
// python::def("typedVarArray", &getTypedVarArrayByType,
|
// python::def("typedVarArray", &getTypedVarArrayByType,
|
||||||
// "Return a list of the typedVar class instances. Each item represents an item of the counted array in the target memory" );
|
// "Return a list of the typedVar class instances. Each item represents an item of the counted array in the target memory" );
|
||||||
// python::def("containingRecord", &containingRecordByName,
|
python::def("containingRecord", &TypedVarAdapter::containingRecordByName,
|
||||||
// "Return instance of the typedVar class. It's value are loaded from the target memory."
|
"Return instance of the typedVar class. It's value are loaded from the target memory."
|
||||||
// "The start address is calculated by the same method as the standard macro CONTAINING_RECORD does" );
|
"The start address is calculated by the same method as the standard macro CONTAINING_RECORD does" );
|
||||||
// python::def("containingRecord", &containingRecordByType,
|
python::def("containingRecord", &TypedVarAdapter::containingRecordByType,
|
||||||
// "Return instance of the typedVar class. It's value are loaded from the target memory."
|
"Return instance of the typedVar class. It's value are loaded from the target memory."
|
||||||
// "The start address is calculated by the same method as the standard macro CONTAINING_RECORD does" );
|
"The start address is calculated by the same method as the standard macro CONTAINING_RECORD does" );
|
||||||
|
|
||||||
// // CPU registers
|
// // CPU registers
|
||||||
// python::def( "reg", &getRegByName,
|
// python::def( "reg", &getRegByName,
|
||||||
@ -412,9 +412,9 @@ BOOST_PYTHON_MODULE( pykd )
|
|||||||
// "Return a list of the typedVar class instances. Each item represents an item of the linked list in the target memory" )
|
// "Return a list of the typedVar class instances. Each item represents an item of the linked list in the target memory" )
|
||||||
//.def("typedVarArray", &Module::getTypedVarArrayByTypeName,
|
//.def("typedVarArray", &Module::getTypedVarArrayByTypeName,
|
||||||
// "Return a list of the typedVar class instances. Each item represents an item of the counted array in the target memory" )
|
// "Return a list of the typedVar class instances. Each item represents an item of the counted array in the target memory" )
|
||||||
//.def("containingRecord", &Module::containingRecordByName,
|
.def("containingRecord", &kdlib::Module::containingRecord,
|
||||||
// "Return instance of the typedVar class. It's value are loaded from the target memory."
|
"Return instance of the typedVar class. It's value are loaded from the target memory."
|
||||||
// "The start address is calculated by the same method as the standard macro CONTAINING_RECORD does" )
|
"The start address is calculated by the same method as the standard macro CONTAINING_RECORD does" )
|
||||||
.def("enumSymbols", ModuleAdapter::enumSymbols, Module_enumSymbols( python::args("mask"),
|
.def("enumSymbols", ModuleAdapter::enumSymbols, Module_enumSymbols( python::args("mask"),
|
||||||
"Return list of tuple ( symbolname, offset )" ) )
|
"Return list of tuple ( symbolname, offset )" ) )
|
||||||
//.def("checksum", &Module::getCheckSum,
|
//.def("checksum", &Module::getCheckSum,
|
||||||
|
@ -36,6 +36,14 @@ struct TypedVarAdapter {
|
|||||||
return L"TYPEDVAR STR";
|
return L"TYPEDVAR STR";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static kdlib::TypedVarPtr containingRecordByName( kdlib::MEMOFFSET_64 offset, const std::wstring &typeName, const std::wstring &fieldName ) {
|
||||||
|
return kdlib::containingRecord( offset, typeName, fieldName );
|
||||||
|
}
|
||||||
|
|
||||||
|
static kdlib::TypedVarPtr containingRecordByType( kdlib::MEMOFFSET_64 offset, kdlib::TypeInfoPtr &typeInfo, const std::wstring &fieldName ) {
|
||||||
|
return kdlib::containingRecord( offset, typeInfo, fieldName );
|
||||||
|
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
} // end namespace pykd
|
} // end namespace pykd
|
||||||
|
Loading…
Reference in New Issue
Block a user