[0.2.x] fixed : issue #12653 ( String length limited to 16384? )

git-svn-id: https://pykd.svn.codeplex.com/svn@87276 9b283d60-5439-405e-af05-b73fd8c4d996
This commit is contained in:
SND\kernelnet_cp 2014-02-12 07:31:07 +00:00 committed by Mikhail I. Izmestev
parent 0398c9358e
commit 9e84715b22
2 changed files with 14 additions and 6 deletions

View File

@ -78,6 +78,7 @@ BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS( Module_findSymbol, Module::getSymbolName
BOOST_PYTHON_MODULE( pykd ) BOOST_PYTHON_MODULE( pykd )
{ {
python::scope().attr("__version__") = pykdVersion; python::scope().attr("__version__") = pykdVersion;
python::scope().attr("version") = pykdVersion;
// DbgEng services // DbgEng services
python::def( "setSymSrvDir", &setSymSrvDir, python::def( "setSymSrvDir", &setSymSrvDir,

View File

@ -14,13 +14,20 @@ void dprint( const std::wstring &str, bool dml )
{ {
PyThread_StateRestore pyThreadRestore( g_dbgEng->pystate ); PyThread_StateRestore pyThreadRestore( g_dbgEng->pystate );
std::wstringstream sstr(str);
std::wstring line;
while (std::getline(sstr, line))
{
line += L'\n';
g_dbgEng->control->ControlledOutputWide( g_dbgEng->control->ControlledOutputWide(
dml ? DEBUG_OUTCTL_AMBIENT_DML : DEBUG_OUTCTL_AMBIENT_TEXT, dml ? DEBUG_OUTCTL_AMBIENT_DML : DEBUG_OUTCTL_AMBIENT_TEXT,
DEBUG_OUTPUT_NORMAL, DEBUG_OUTPUT_NORMAL,
L"%ws", L"%ws",
str.c_str() line.c_str()
); );
}
} }
else else
{ {