mirror of
https://github.com/ivellioscolin/pykd.git
synced 2025-04-21 12:53:23 +08:00
[0.2.x] fixed : removed pycmd input echo
git-svn-id: https://pykd.svn.codeplex.com/svn@79645 9b283d60-5439-405e-af05-b73fd8c4d996
This commit is contained in:
parent
2d54e2c4f3
commit
46b960975a
@ -100,7 +100,6 @@ HRESULT
|
||||
CALLBACK
|
||||
py( PDEBUG_CLIENT4 client, PCSTR args )
|
||||
{
|
||||
// g_dbgEng.setClient( client );
|
||||
|
||||
WindbgGlobalSession::RestorePyState();
|
||||
|
||||
@ -212,10 +211,12 @@ HRESULT
|
||||
CALLBACK
|
||||
pycmd( PDEBUG_CLIENT4 client, PCSTR args )
|
||||
{
|
||||
// g_dbgEng.setClient( client );
|
||||
|
||||
WindbgGlobalSession::RestorePyState();
|
||||
|
||||
ULONG mask = 0;
|
||||
client->GetOutputMask( &mask );
|
||||
client->SetOutputMask( mask & ~DEBUG_OUTPUT_PROMPT ); // óáðàòü ýõî ââîäà
|
||||
|
||||
try {
|
||||
|
||||
// ïåðåíàïðàâëåíèå ñòàíäàðòíûõ ïîòîêîâ ÂÂ
|
||||
@ -241,6 +242,8 @@ pycmd( PDEBUG_CLIENT4 client, PCSTR args )
|
||||
eprintln( L"unexpected error" );
|
||||
}
|
||||
|
||||
client->SetOutputMask( mask );
|
||||
|
||||
WindbgGlobalSession::SavePyState();
|
||||
|
||||
return S_OK;
|
||||
|
Loading…
Reference in New Issue
Block a user