mirror of
https://github.com/ivellioscolin/pykd.git
synced 2025-04-29 11:53:23 +08:00
[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:
parent
5ef445611c
commit
e1e64a3d0c
@ -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 );
|
||||
|
@ -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()",
|
||||
|
Loading…
Reference in New Issue
Block a user