mirror of
https://github.com/ivellioscolin/pykd.git
synced 2025-04-29 11:53:23 +08:00
[0.1.x]
+ DIA symbol comparator + DIA symbol hash git-svn-id: https://pykd.svn.codeplex.com/svn@74770 9b283d60-5439-405e-af05-b73fd8c4d996
This commit is contained in:
parent
07c4634708
commit
234c60d1f2
@ -725,7 +725,9 @@ BOOST_PYTHON_MODULE( pykd )
|
||||
.def( "__str__", &pyDia::Symbol::print)
|
||||
.def("__getitem__", &pyDia::Symbol::getChildByName)
|
||||
.def("__len__", &pyDia::Symbol::getChildCount )
|
||||
.def("__getitem__", &pyDia::Symbol::getChildByIndex);
|
||||
.def("__getitem__", &pyDia::Symbol::getChildByIndex)
|
||||
.def("__eq__", &pyDia::Symbol::eq)
|
||||
.def("__hash__", &pyDia::Symbol::getIndexId);
|
||||
|
||||
python::class_<pyDia::GlobalScope, pyDia::GlobalScopePtr, python::bases<pyDia::Symbol> >(
|
||||
"DiaScope", "class wrapper for MS DIA Symbol", python::no_init )
|
||||
|
@ -378,6 +378,13 @@ std::string Symbol::print()
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
bool Symbol::eq(Symbol &rhs)
|
||||
{
|
||||
return getIndexId() == rhs.getIndexId();
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
GlobalScope::GlobalScope(
|
||||
__inout DiaDataSourcePtr &_scope,
|
||||
__inout DiaSessionPtr &_session,
|
||||
|
@ -140,6 +140,7 @@ public:
|
||||
|
||||
std::string print();
|
||||
|
||||
bool eq(Symbol &rhs);
|
||||
|
||||
public:
|
||||
typedef std::pair<ULONG, const char *> ValueNameEntry;
|
||||
|
Loading…
Reference in New Issue
Block a user