mirror of
https://github.com/ivellioscolin/pykd.git
synced 2025-04-21 21:03:23 +08:00
[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:
parent
f07eab51e2
commit
b7ce577654
@ -3,7 +3,7 @@
|
|||||||
#define PYKDEXT_VERSION_MAJOR 1
|
#define PYKDEXT_VERSION_MAJOR 1
|
||||||
#define PYKDEXT_VERSION_MINOR 0
|
#define PYKDEXT_VERSION_MINOR 0
|
||||||
#define PYKDEXT_VERSION_SUBVERSION 1
|
#define PYKDEXT_VERSION_SUBVERSION 1
|
||||||
#define PYKDEXT_VERSION_BUILDNO 12
|
#define PYKDEXT_VERSION_BUILDNO 13
|
||||||
|
|
||||||
#define __VER_STR2__(x) #x
|
#define __VER_STR2__(x) #x
|
||||||
#define __VER_STR1__(x) __VER_STR2__(x)
|
#define __VER_STR1__(x) __VER_STR2__(x)
|
||||||
|
@ -190,6 +190,15 @@ public:
|
|||||||
delete m_globalInterpreter;
|
delete m_globalInterpreter;
|
||||||
m_globalInterpreter = 0;
|
m_globalInterpreter = 0;
|
||||||
PyThreadState_Swap(m_globalState);
|
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();
|
m_globalState = PyEval_SaveThread();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -198,14 +207,6 @@ public:
|
|||||||
PyEval_RestoreThread(m_globalState);
|
PyEval_RestoreThread(m_globalState);
|
||||||
|
|
||||||
m_globalInterpreter = new PythonInterpreter();
|
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() {
|
void acivateGlobal() {
|
||||||
|
Loading…
Reference in New Issue
Block a user