mirror of
https://github.com/ivellioscolin/pykd.git
synced 2025-04-19 19:13:22 +08:00
[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:
parent
0398c9358e
commit
9e84715b22
@ -78,6 +78,7 @@ BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS( Module_findSymbol, Module::getSymbolName
|
||||
BOOST_PYTHON_MODULE( pykd )
|
||||
{
|
||||
python::scope().attr("__version__") = pykdVersion;
|
||||
python::scope().attr("version") = pykdVersion;
|
||||
|
||||
// DbgEng services
|
||||
python::def( "setSymSrvDir", &setSymSrvDir,
|
||||
|
@ -14,13 +14,20 @@ void dprint( const std::wstring &str, bool dml )
|
||||
{
|
||||
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(
|
||||
dml ? DEBUG_OUTCTL_AMBIENT_DML : DEBUG_OUTCTL_AMBIENT_TEXT,
|
||||
DEBUG_OUTPUT_NORMAL,
|
||||
L"%ws",
|
||||
str.c_str()
|
||||
line.c_str()
|
||||
);
|
||||
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user