mirror of
https://github.com/ivellioscolin/pykd.git
synced 2025-04-20 03:23:23 +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 );
|
||||
|
||||
PyEval_InitThreads();
|
||||
|
||||
Py_Initialize();
|
||||
|
||||
main = boost::python::import("__main__");
|
||||
@ -688,7 +690,9 @@ private:
|
||||
}
|
||||
|
||||
~WindbgGlobalSession() {
|
||||
|
||||
g_dbgClient.removeEventsMgr();
|
||||
|
||||
Py_Finalize();
|
||||
}
|
||||
|
||||
@ -697,6 +701,8 @@ private:
|
||||
static volatile LONG sessionCount;
|
||||
|
||||
static WindbgGlobalSession *windbgGlobalSession;
|
||||
|
||||
PyThreadState *initThreadState;
|
||||
};
|
||||
|
||||
volatile LONG WindbgGlobalSession::sessionCount = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user