mirror of
https://github.com/ivellioscolin/pykd.git
synced 2025-04-21 12:53:23 +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/dbgeng.h"
|
||||||
#include "win/dbgio.h"
|
#include "win/dbgio.h"
|
||||||
|
#include "win/windbg.h"
|
||||||
#include "dbgexcept.h"
|
#include "dbgexcept.h"
|
||||||
#include "eventhandler.h"
|
#include "eventhandler.h"
|
||||||
#include "symengine.h"
|
#include "symengine.h"
|
||||||
@ -1309,6 +1310,8 @@ DebugEngine::DbgEngBind* DebugEngine::operator->()
|
|||||||
|
|
||||||
m_bind.reset(new DbgEngBind(client, this) );
|
m_bind.reset(new DbgEngBind(client, this) );
|
||||||
|
|
||||||
|
if ( !WindbgGlobalSession::isInit() )
|
||||||
|
{
|
||||||
python::object main = boost::python::import("__main__");
|
python::object main = boost::python::import("__main__");
|
||||||
|
|
||||||
python::object main_namespace = main.attr("__dict__");
|
python::object main_namespace = main.attr("__dict__");
|
||||||
@ -1318,6 +1321,7 @@ DebugEngine::DbgEngBind* DebugEngine::operator->()
|
|||||||
main_namespace["globalEventHandler"] = EventHandlerPtr( new EventHandlerImpl() );
|
main_namespace["globalEventHandler"] = EventHandlerPtr( new EventHandlerImpl() );
|
||||||
|
|
||||||
client->SetInputCallbacks( this );
|
client->SetInputCallbacks( this );
|
||||||
|
}
|
||||||
|
|
||||||
return m_bind.get();
|
return m_bind.get();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user