mirror of
https://github.com/ivellioscolin/pykd.git
synced 2025-04-21 04:13:22 +08:00
[pykd] fixed: WindbgGlobalSession constructor
git-svn-id: https://pykd.svn.codeplex.com/svn@70143 9b283d60-5439-405e-af05-b73fd8c4d996
This commit is contained in:
parent
0fe8942713
commit
df5da9c55d
@ -654,6 +654,8 @@ private:
|
|||||||
|
|
||||||
PyImport_AppendInittab("pykd", initpykd );
|
PyImport_AppendInittab("pykd", initpykd );
|
||||||
|
|
||||||
|
PyEval_InitThreads();
|
||||||
|
|
||||||
Py_Initialize();
|
Py_Initialize();
|
||||||
|
|
||||||
main = boost::python::import("__main__");
|
main = boost::python::import("__main__");
|
||||||
@ -688,7 +690,9 @@ private:
|
|||||||
}
|
}
|
||||||
|
|
||||||
~WindbgGlobalSession() {
|
~WindbgGlobalSession() {
|
||||||
|
|
||||||
g_dbgClient.removeEventsMgr();
|
g_dbgClient.removeEventsMgr();
|
||||||
|
|
||||||
Py_Finalize();
|
Py_Finalize();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -697,6 +701,8 @@ private:
|
|||||||
static volatile LONG sessionCount;
|
static volatile LONG sessionCount;
|
||||||
|
|
||||||
static WindbgGlobalSession *windbgGlobalSession;
|
static WindbgGlobalSession *windbgGlobalSession;
|
||||||
|
|
||||||
|
PyThreadState *initThreadState;
|
||||||
};
|
};
|
||||||
|
|
||||||
volatile LONG WindbgGlobalSession::sessionCount = 0;
|
volatile LONG WindbgGlobalSession::sessionCount = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user