mirror of
https://github.com/ivellioscolin/pykd.git
synced 2025-04-21 04:13:22 +08:00
[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:
parent
c2a15c2769
commit
7b3710b487
@ -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)
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user