mirror of
https://github.com/ivellioscolin/pykd.git
synced 2025-04-20 03:23:23 +08:00
[+] pyDia: query failed HRESULT value
git-svn-id: https://pykd.svn.codeplex.com/svn@69904 9b283d60-5439-405e-af05-b73fd8c4d996
This commit is contained in:
parent
4ecd871b02
commit
4c40342a91
@ -232,14 +232,15 @@ BOOST_PYTHON_MODULE( pykd )
|
||||
.def( python::init<std::string>( python::args("desc"), "constructor" ) )
|
||||
.def( "desc", &DbgException::getDesc,
|
||||
"Get exception description" )
|
||||
.def( "__str__", &DbgException::print);
|
||||
.def( "__str__", &DbgException::print);
|
||||
DbgException::setTypeObject( dbgExceptionClass.ptr() );
|
||||
|
||||
// DIA exceptions
|
||||
python::class_<pyDia::Exception, python::bases<DbgException> > diaException(
|
||||
"DiaException",
|
||||
"Debug interface access exception",
|
||||
python::no_init );
|
||||
python::class_<pyDia::Exception, python::bases<DbgException> > diaException(
|
||||
"DiaException", "Debug interface access exception",
|
||||
python::no_init );
|
||||
diaException
|
||||
.def( "hres", &pyDia::Exception::getRes );
|
||||
pyDia::Exception::setTypeObject( diaException.ptr() );
|
||||
boost::python::register_exception_translator<pyDia::Exception>(
|
||||
&pyDia::Exception::exceptionTranslate );
|
||||
|
Loading…
Reference in New Issue
Block a user