diff --git a/pykd/dbgext.cpp b/pykd/dbgext.cpp index 61064bc..1feec3f 100644 --- a/pykd/dbgext.cpp +++ b/pykd/dbgext.cpp @@ -232,14 +232,15 @@ BOOST_PYTHON_MODULE( pykd ) .def( python::init( 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_ > diaException( - "DiaException", - "Debug interface access exception", - python::no_init ); + python::class_ > 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::exceptionTranslate );