mirror of
https://github.com/ivellioscolin/pykd.git
synced 2025-04-21 12:53:23 +08:00
[!] fixed : issue 8469 ( dprintln does not work in console mode )
git-svn-id: https://pykd.svn.codeplex.com/svn@62227 9b283d60-5439-405e-af05-b73fd8c4d996
This commit is contained in:
parent
a191d81ffe
commit
06fb9c267a
@ -11,7 +11,9 @@ void DbgPrint::dprint( const boost::python::object& obj, bool dml )
|
|||||||
{
|
{
|
||||||
std::wstring str = boost::python::extract<std::wstring>( obj );
|
std::wstring str = boost::python::extract<std::wstring>( obj );
|
||||||
|
|
||||||
dbgExt->control4->ControlledOutputWide( dml ? DEBUG_OUTCTL_AMBIENT_DML : DEBUG_OUTCTL_AMBIENT_TEXT, DEBUG_OUTPUT_NORMAL, str.c_str() );
|
HRESULT hres = dbgExt->control4->ControlledOutputWide( dml ? DEBUG_OUTCTL_AMBIENT_DML : DEBUG_OUTCTL_AMBIENT_TEXT, DEBUG_OUTPUT_NORMAL, str.c_str() );
|
||||||
|
|
||||||
|
std::wcout << str;
|
||||||
}
|
}
|
||||||
|
|
||||||
void DbgPrint::dprintln( const boost::python::object& obj, bool dml )
|
void DbgPrint::dprintln( const boost::python::object& obj, bool dml )
|
||||||
@ -20,5 +22,7 @@ void DbgPrint::dprintln( const boost::python::object& obj, bool dml )
|
|||||||
str += L"\r\n";
|
str += L"\r\n";
|
||||||
|
|
||||||
dbgExt->control4->ControlledOutputWide( dml ? DEBUG_OUTCTL_AMBIENT_DML : DEBUG_OUTCTL_AMBIENT_TEXT, DEBUG_OUTPUT_NORMAL, str.c_str() );
|
dbgExt->control4->ControlledOutputWide( dml ? DEBUG_OUTCTL_AMBIENT_DML : DEBUG_OUTCTL_AMBIENT_TEXT, DEBUG_OUTPUT_NORMAL, str.c_str() );
|
||||||
|
|
||||||
|
std::wcout << str;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user