mirror of
https://github.com/ivellioscolin/pykd.git
synced 2025-04-21 04:13:22 +08:00
[0.2.x] fixed : cleanup code
git-svn-id: https://pykd.svn.codeplex.com/svn@85786 9b283d60-5439-405e-af05-b73fd8c4d996
This commit is contained in:
parent
16dc23f44f
commit
ed00ec2b67
@ -294,8 +294,6 @@ py( PDEBUG_CLIENT4 client, PCSTR args )
|
|||||||
|
|
||||||
PyThreadState_Swap( NULL );
|
PyThreadState_Swap( NULL );
|
||||||
|
|
||||||
//interpreter->tstate_head = threadState->next;
|
|
||||||
|
|
||||||
PyThreadState_Delete(threadState);
|
PyThreadState_Delete(threadState);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -303,22 +301,6 @@ py( PDEBUG_CLIENT4 client, PCSTR args )
|
|||||||
|
|
||||||
PyInterpreterState_Delete(interpreter);
|
PyInterpreterState_Delete(interpreter);
|
||||||
|
|
||||||
//Py_EndInterpreter( localInterpreter );
|
|
||||||
|
|
||||||
//std::list<PyThreadState*> localThreadsState;
|
|
||||||
//localThread = PyInterpreterState_ThreadHead( localInterpreter );
|
|
||||||
//while( localThread )
|
|
||||||
//{
|
|
||||||
// localThreadsState.push_back(localThread);
|
|
||||||
// localThread = PyThreadState_Next(localThread);
|
|
||||||
//}
|
|
||||||
|
|
||||||
//std::for_each( localThreadsState.begin(), localThreadsState.end(), PyThreadState_Clear );
|
|
||||||
//std::for_each( localThreadsState.begin(), localThreadsState.end(), PyThreadState_Delete );
|
|
||||||
|
|
||||||
//PyInterpreterState_Clear( localInterpreter );
|
|
||||||
//PyInterpreterState_Delete( localInterpreter );
|
|
||||||
|
|
||||||
PyThreadState_Swap( globalInterpreter );
|
PyThreadState_Swap( globalInterpreter );
|
||||||
|
|
||||||
WindbgGlobalSession::SavePyState();
|
WindbgGlobalSession::SavePyState();
|
||||||
|
Loading…
Reference in New Issue
Block a user