[0.2.x] fixed : !pycmd falled to loop

git-svn-id: https://pykd.svn.codeplex.com/svn@83134 9b283d60-5439-405e-af05-b73fd8c4d996
This commit is contained in:
SND\kernelnet_cp 2013-03-29 11:32:30 +00:00 committed by Mikhail I. Izmestev
parent 2ae5ead1ad
commit a10f7ed26b

View File

@ -4,6 +4,7 @@
#include "win/dbgeng.h"
#include "win/dbgio.h"
#include "win/windbg.h"
#include "dbgexcept.h"
#include "eventhandler.h"
#include "symengine.h"
@ -1309,6 +1310,8 @@ DebugEngine::DbgEngBind* DebugEngine::operator->()
m_bind.reset(new DbgEngBind(client, this) );
if ( !WindbgGlobalSession::isInit() )
{
python::object main = boost::python::import("__main__");
python::object main_namespace = main.attr("__dict__");
@ -1318,6 +1321,7 @@ DebugEngine::DbgEngBind* DebugEngine::operator->()
main_namespace["globalEventHandler"] = EventHandlerPtr( new EventHandlerImpl() );
client->SetInputCallbacks( this );
}
return m_bind.get();
}