From 843ab7ac07e295e113e81805282dec776079b52b Mon Sep 17 00:00:00 2001 From: "SND\\kernelnet_cp" Date: Wed, 16 Oct 2013 13:27:13 +0000 Subject: [PATCH] [0.2.x] added : debugAccess enum git-svn-id: https://pykd.svn.codeplex.com/svn@85781 9b283d60-5439-405e-af05-b73fd8c4d996 --- pykd/dbgengine.h | 7 +++++++ pykd/pykdver.h | 2 +- pykd/python/pymod.cpp | 7 +++++++ 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/pykd/dbgengine.h b/pykd/dbgengine.h index 642896b..4b6a796 100644 --- a/pykd/dbgengine.h +++ b/pykd/dbgengine.h @@ -160,6 +160,13 @@ enum EXECUTION_STATUS { DebugStatusNoDebuggee = 7 }; +enum DEBUG_ACCESS_TYPE { + DebugAccessRead = 0x00000001, + DebugAccessWrite = 0x00000002, + DebugAccessExecute = 0x00000004, + DebugAccessIo = 0x00000008 +}; + struct BUG_CHECK_DATA { ULONG code; diff --git a/pykd/pykdver.h b/pykd/pykdver.h index 9d1240e..b4c8e7c 100644 --- a/pykd/pykdver.h +++ b/pykd/pykdver.h @@ -2,7 +2,7 @@ #define PYKD_VERSION_MAJOR 0 #define PYKD_VERSION_MINOR 2 #define PYKD_VERSION_SUBVERSION 0 -#define PYKD_VERSION_BUILDNO 24 +#define PYKD_VERSION_BUILDNO 25 #define __VER_STR2__(x) #x diff --git a/pykd/python/pymod.cpp b/pykd/python/pymod.cpp index b29375f..00d69f0 100644 --- a/pykd/python/pymod.cpp +++ b/pykd/python/pymod.cpp @@ -634,6 +634,13 @@ BOOST_PYTHON_MODULE( pykd ) .value("NoDebuggee", DebugStatusNoDebuggee ) .export_values(); + python::enum_("debugAccess", "Debud Access Types") + .value("Read", DebugAccessRead ) + .value("Write", DebugAccessWrite ) + .value("Execute", DebugAccessExecute ) + .value("DebugAccessIo", DebugAccessIo ) + .export_values(); + python::class_( "eventHandler", "Base class for overriding and handling debug notifications" ) .def( "onBreakpoint", &EventHandlerWrap::OnBreakpoint,