From f9a0361d85d96d23248ff42953c884dccc10746f Mon Sep 17 00:00:00 2001 From: ussrhero Date: Mon, 16 Mar 2020 21:41:53 +0300 Subject: [PATCH 1/5] started work at 0.3.4.13 --- pykd/pykdver.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pykd/pykdver.h b/pykd/pykdver.h index 44bb0a5..2487b9e 100644 --- a/pykd/pykdver.h +++ b/pykd/pykdver.h @@ -2,7 +2,7 @@ #define PYKD_VERSION_MAJOR 0 #define PYKD_VERSION_MINOR 3 #define PYKD_VERSION_SUBVERSION 4 -#define PYKD_VERSION_BUILDNO 12 +#define PYKD_VERSION_BUILDNO 13 #define __VER_STR2__(x) #x #define __VER_STR1__(x) __VER_STR2__(x) From fce592816d3000d47c979ce0333322e9a047a719 Mon Sep 17 00:00:00 2001 From: ussrhero Date: Mon, 16 Mar 2020 21:45:12 +0300 Subject: [PATCH 2/5] added : new typeInfo cache --- kdlibcpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kdlibcpp b/kdlibcpp index 5be28cd..e1bcead 160000 --- a/kdlibcpp +++ b/kdlibcpp @@ -1 +1 @@ -Subproject commit 5be28cda0ef7473125813c250adceef4d07218a4 +Subproject commit e1bceada11c9aeff5be1bf10b99759a013eb6240 From dfb935f3f8f6259a3d302b075dc91123a6a3e0e5 Mon Sep 17 00:00:00 2001 From: ussrhero Date: Mon, 16 Mar 2020 23:12:47 +0300 Subject: [PATCH 3/5] added : additional parameter for debugCommand routine to control an output mask --- pykd/pydbgeng.h | 4 ++-- pykd/pymod.cpp | 8 +++++--- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/pykd/pydbgeng.h b/pykd/pydbgeng.h index 652fbe1..ef8ba9f 100644 --- a/pykd/pydbgeng.h +++ b/pykd/pydbgeng.h @@ -104,13 +104,13 @@ bool isKernelDebugging() inline -python::object debugCommand( const std::wstring &command, bool suppressOutput = true) +python::object debugCommand( const std::wstring &command, bool suppressOutput = true, const kdlib::OutputFlagsSet& captureFlags = kdlib::OutputFlag::Normal) { std::wstring debugResult; { AutoRestorePyState pystate; - debugResult = kdlib::debugCommand(command, suppressOutput); + debugResult = kdlib::debugCommand(command, suppressOutput, captureFlags); } if (debugResult.size() > 0 ) diff --git a/pykd/pymod.cpp b/pykd/pymod.cpp index 4f3511f..f407e62 100644 --- a/pykd/pymod.cpp +++ b/pykd/pymod.cpp @@ -42,7 +42,7 @@ BOOST_PYTHON_FUNCTION_OVERLOADS( terminateProcess_, pykd::terminateProcess, 0, BOOST_PYTHON_FUNCTION_OVERLOADS(closeDump_, pykd::closeDump, 0, 1); BOOST_PYTHON_FUNCTION_OVERLOADS( attachKernel_, pykd::attachKernel, 0, 1 ); BOOST_PYTHON_FUNCTION_OVERLOADS( evaluate_, pykd::evaluate, 1, 2 ); -BOOST_PYTHON_FUNCTION_OVERLOADS( debugCommand_, pykd::debugCommand, 1, 2 ); +BOOST_PYTHON_FUNCTION_OVERLOADS( debugCommand_, pykd::debugCommand, 1, 3 ); BOOST_PYTHON_FUNCTION_OVERLOADS( dprint_, pykd::dprint, 1, 2 ); BOOST_PYTHON_FUNCTION_OVERLOADS( dprintln_, pykd::dprintln, 1, 2 ); @@ -207,8 +207,10 @@ void pykd_init() "Break into debugger" ); python::def( "expr", pykd::evaluate, evaluate_( python::args( "expression", "cplusplus" ), "Evaluate windbg expression" ) ); - python::def( "dbgCommand", &pykd::debugCommand, - debugCommand_( python::args( "command", "suppressOutput"), "Run a debugger's command and return it's result as a string" ) ); + python::def( "dbgCommand", &pykd::debugCommand, debugCommand_( python::args( + "command", "suppressOutput", "outputMask"), + "Run a debugger's command and return it's result as a string. You can set additional outputMask" \ + "if you want to get also error messages" ) ); python::def( "go", pykd::targetGo, "Go debugging" ); python::def( "step", pykd::targetStep, From 5bfa9471854a7238476db556e6d4d53a72af3921 Mon Sep 17 00:00:00 2001 From: ussrhero Date: Sat, 21 Mar 2020 18:32:34 +0300 Subject: [PATCH 4/5] set kdlib to 1.2.14 --- kdlibcpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kdlibcpp b/kdlibcpp index e1bcead..eeefca7 160000 --- a/kdlibcpp +++ b/kdlibcpp @@ -1 +1 @@ -Subproject commit e1bceada11c9aeff5be1bf10b99759a013eb6240 +Subproject commit eeefca7d729673ce7550fb1ac6c8b9c19950da89 From 7bc86e0c531a771458740669254d3fc48bc03e93 Mon Sep 17 00:00:00 2001 From: ussrhero Date: Sat, 28 Mar 2020 11:49:50 +0300 Subject: [PATCH 5/5] fixed tests --- kdlibcpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kdlibcpp b/kdlibcpp index eeefca7..d6c85ac 160000 --- a/kdlibcpp +++ b/kdlibcpp @@ -1 +1 @@ -Subproject commit eeefca7d729673ce7550fb1ac6c8b9c19950da89 +Subproject commit d6c85ac71663a98e885aed81ced4ca1aadd0be8e