mirror of
https://github.com/ivellioscolin/pykd.git
synced 2025-04-20 03:23:23 +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 )
|
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,
|
||||||
|
@ -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
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user