[pykd_bootstrapper] fixed : issue #13888 ( Kernel debug. After reboot module class works inproperly )

git-svn-id: https://pykd.svn.codeplex.com/svn@90977 9b283d60-5439-405e-af05-b73fd8c4d996
This commit is contained in:
SND\kernelnet_cp 2016-04-26 10:04:22 +00:00 committed by Mikhail I. Izmestev
parent f07eab51e2
commit b7ce577654
2 changed files with 10 additions and 9 deletions

View File

@ -3,7 +3,7 @@
#define PYKDEXT_VERSION_MAJOR 1
#define PYKDEXT_VERSION_MINOR 0
#define PYKDEXT_VERSION_SUBVERSION 1
#define PYKDEXT_VERSION_BUILDNO 12
#define PYKDEXT_VERSION_BUILDNO 13
#define __VER_STR2__(x) #x
#define __VER_STR1__(x) __VER_STR2__(x)

View File

@ -190,6 +190,15 @@ public:
delete m_globalInterpreter;
m_globalInterpreter = 0;
PyThreadState_Swap(m_globalState);
if (m_pykdInit)
{
python::object main = python::import("__main__");
python::object globalScope(main.attr("__dict__"));
python::exec("__import__('pykd').deinitialize()", globalScope);
m_pykdInit = false;
}
m_globalState = PyEval_SaveThread();
}
@ -198,14 +207,6 @@ public:
PyEval_RestoreThread(m_globalState);
m_globalInterpreter = new PythonInterpreter();
//m_globalInterpreter->acivate();
//python::object main = boost::python::import("__main__");
//python::object main_namespace = main.attr("__dict__");
//m_globalInterpreter->deactivate();
}
void acivateGlobal() {