[0.2.x] added : debugAccess enum

git-svn-id: https://pykd.svn.codeplex.com/svn@85781 9b283d60-5439-405e-af05-b73fd8c4d996
This commit is contained in:
SND\kernelnet_cp 2013-10-16 13:27:13 +00:00 committed by Mikhail I. Izmestev
parent e9923606b3
commit 843ab7ac07
3 changed files with 15 additions and 1 deletions

View File

@ -160,6 +160,13 @@ enum EXECUTION_STATUS {
DebugStatusNoDebuggee = 7 DebugStatusNoDebuggee = 7
}; };
enum DEBUG_ACCESS_TYPE {
DebugAccessRead = 0x00000001,
DebugAccessWrite = 0x00000002,
DebugAccessExecute = 0x00000004,
DebugAccessIo = 0x00000008
};
struct BUG_CHECK_DATA struct BUG_CHECK_DATA
{ {
ULONG code; ULONG code;

View File

@ -2,7 +2,7 @@
#define PYKD_VERSION_MAJOR 0 #define PYKD_VERSION_MAJOR 0
#define PYKD_VERSION_MINOR 2 #define PYKD_VERSION_MINOR 2
#define PYKD_VERSION_SUBVERSION 0 #define PYKD_VERSION_SUBVERSION 0
#define PYKD_VERSION_BUILDNO 24 #define PYKD_VERSION_BUILDNO 25
#define __VER_STR2__(x) #x #define __VER_STR2__(x) #x

View File

@ -634,6 +634,13 @@ BOOST_PYTHON_MODULE( pykd )
.value("NoDebuggee", DebugStatusNoDebuggee ) .value("NoDebuggee", DebugStatusNoDebuggee )
.export_values(); .export_values();
python::enum_<DEBUG_ACCESS_TYPE>("debugAccess", "Debud Access Types")
.value("Read", DebugAccessRead )
.value("Write", DebugAccessWrite )
.value("Execute", DebugAccessExecute )
.value("DebugAccessIo", DebugAccessIo )
.export_values();
python::class_<EventHandlerWrap, EventHandlerPtr, boost::noncopyable>( python::class_<EventHandlerWrap, EventHandlerPtr, boost::noncopyable>(
"eventHandler", "Base class for overriding and handling debug notifications" ) "eventHandler", "Base class for overriding and handling debug notifications" )
.def( "onBreakpoint", &EventHandlerWrap::OnBreakpoint, .def( "onBreakpoint", &EventHandlerWrap::OnBreakpoint,