[0.1.x] fixed : !pycmd implementation

git-svn-id: https://pykd.svn.codeplex.com/svn@70281 9b283d60-5439-405e-af05-b73fd8c4d996
This commit is contained in:
SND\kernelnet_cp 2011-10-10 11:28:00 +00:00 committed by Mikhail I. Izmestev
parent 5ef445611c
commit e1e64a3d0c
2 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,7 @@ namespace pykd {
///////////////////////////////////////////////////////////////////////////////////
DebugClientPtr g_dbgClient; //( DebugClient::createDbgClient() );
DebugClientPtr g_dbgClient( DebugClient::createDbgClient() );
void loadDump( const std::wstring &fileName ) {
g_dbgClient->loadDump( fileName );

View File

@ -516,10 +516,10 @@ pycmd( PDEBUG_CLIENT4 client, PCSTR args )
python::object sys = python::import("sys");
sys.attr("stdout") = python::object( DbgOut( client ) );
sys.attr("stderr") = python::object( DbgOut( client ) );
sys.attr("stdin") = python::object( DbgIn( client ) );
client->SetOutputMask( DEBUG_OUTPUT_NORMAL );
//client->SetInputCallbacks( NULL );
PyRun_String(
"__import__('code').InteractiveConsole(__import__('__main__').__dict__).interact()",