mirror of
https://github.com/ivellioscolin/pykd.git
synced 2025-04-19 19:13:22 +08:00
[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:
parent
2ae5ead1ad
commit
a10f7ed26b
@ -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,15 +1310,18 @@ DebugEngine::DbgEngBind* DebugEngine::operator->()
|
||||
|
||||
m_bind.reset(new DbgEngBind(client, this) );
|
||||
|
||||
python::object main = boost::python::import("__main__");
|
||||
if ( !WindbgGlobalSession::isInit() )
|
||||
{
|
||||
python::object main = boost::python::import("__main__");
|
||||
|
||||
python::object main_namespace = main.attr("__dict__");
|
||||
python::object main_namespace = main.attr("__dict__");
|
||||
|
||||
python::object pykd = boost::python::import( "pykd" );
|
||||
python::object pykd = boost::python::import( "pykd" );
|
||||
|
||||
main_namespace["globalEventHandler"] = EventHandlerPtr( new EventHandlerImpl() );
|
||||
main_namespace["globalEventHandler"] = EventHandlerPtr( new EventHandlerImpl() );
|
||||
|
||||
client->SetInputCallbacks( this );
|
||||
client->SetInputCallbacks( this );
|
||||
}
|
||||
|
||||
return m_bind.get();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user