[pykd_ext_2.0] fixed : issue #13983 ( !pykd.info throws unhandled exception )

git-svn-id: https://pykd.svn.codeplex.com/svn@91044 9b283d60-5439-405e-af05-b73fd8c4d996
This commit is contained in:
SND\kernelnet_cp 2016-09-15 10:49:08 +00:00 committed by Mikhail I. Izmestev
parent c2a15c2769
commit 7b3710b487
2 changed files with 51 additions and 38 deletions

View File

@ -3,7 +3,7 @@
#define PYKDEXT_VERSION_MAJOR 2
#define PYKDEXT_VERSION_MINOR 0
#define PYKDEXT_VERSION_SUBVERSION 0
#define PYKDEXT_VERSION_BUILDNO 4
#define PYKDEXT_VERSION_BUILDNO 5
#define __VER_STR2__(x) #x
#define __VER_STR1__(x) __VER_STR2__(x)

View File

@ -133,6 +133,8 @@ info(
PCSTR args
)
{
try
{
std::stringstream sstr;
sstr <<std::endl << "pykd bootstrapper version: " << PYKDEXT_VERSION_MAJOR << '.' << PYKDEXT_VERSION_MINOR << '.'
@ -178,6 +180,17 @@ info(
DEBUG_OUTPUT_NORMAL,
sstr.str().c_str()
);
}
catch(std::exception &e)
{
CComQIPtr<IDebugControl> control = client;
control->ControlledOutput(
DEBUG_OUTCTL_THIS_CLIENT,
DEBUG_OUTPUT_ERROR,
e.what()
);
}
return S_OK;
}