From 5be20080a39e52ea93b43ba894007533dc83f418 Mon Sep 17 00:00:00 2001 From: "SND\\kernelnet_cp" Date: Tue, 12 Jul 2016 12:09:03 +0000 Subject: [PATCH] [pykd_ext_2.0] fixed : exception "pykd is not initialized" after restart windbg git-svn-id: https://pykd.svn.codeplex.com/svn@91006 9b283d60-5439-405e-af05-b73fd8c4d996 --- pykd_ext/pyinterpret.cpp | 2 ++ pykd_ext/version.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/pykd_ext/pyinterpret.cpp b/pykd_ext/pyinterpret.cpp index 2285668..1e7e0e9 100644 --- a/pykd_ext/pyinterpret.cpp +++ b/pykd_ext/pyinterpret.cpp @@ -508,6 +508,8 @@ void PyModule::deactivate() if (mainMod) Py_DecRef(mainMod); if (globals) Py_DecRef(globals); if (result) Py_DecRef(result); + + m_pykdInit = false; } m_globalState = PyEval_SaveThread(); diff --git a/pykd_ext/version.h b/pykd_ext/version.h index b09df73..18bf1c9 100644 --- a/pykd_ext/version.h +++ b/pykd_ext/version.h @@ -3,7 +3,7 @@ #define PYKDEXT_VERSION_MAJOR 2 #define PYKDEXT_VERSION_MINOR 0 #define PYKDEXT_VERSION_SUBVERSION 0 -#define PYKDEXT_VERSION_BUILDNO 3 +#define PYKDEXT_VERSION_BUILDNO 4 #define __VER_STR2__(x) #x #define __VER_STR1__(x) __VER_STR2__(x)