mirror of
https://github.com/ivellioscolin/pykd.git
synced 2025-04-21 04:13:22 +08:00
[pykd] updated: !pycmd
git-svn-id: https://pykd.svn.codeplex.com/svn@68283 9b283d60-5439-405e-af05-b73fd8c4d996
This commit is contained in:
parent
679b315aac
commit
162c58eb33
@ -951,7 +951,7 @@ pycmd( PDEBUG_CLIENT4 client, PCSTR args )
|
|||||||
try {
|
try {
|
||||||
|
|
||||||
boost::python::exec( commandBuffer.c_str(), WindbgGlobalSession::global(), WindbgGlobalSession::global() );
|
boost::python::exec( commandBuffer.c_str(), WindbgGlobalSession::global(), WindbgGlobalSession::global() );
|
||||||
|
|
||||||
commandBuffer.clear();
|
commandBuffer.clear();
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -963,16 +963,16 @@ pycmd( PDEBUG_CLIENT4 client, PCSTR args )
|
|||||||
|
|
||||||
if ( errtype && errvalue )
|
if ( errtype && errvalue )
|
||||||
{
|
{
|
||||||
boost::python::tuple errValueObj( boost::python::handle<>( boost::python::borrowed(errvalue) ) );
|
|
||||||
|
|
||||||
PyObject *errvalueStr = PyObject_Str(errvalue);
|
PyObject *errvalueStr = PyObject_Str(errvalue);
|
||||||
|
|
||||||
std::string errValueStr = boost::python::extract<std::string>( errvalueStr );
|
std::string errValueStr = boost::python::extract<std::string>( errvalueStr );
|
||||||
|
|
||||||
Py_XDECREF(errvalueStr);
|
|
||||||
|
|
||||||
if ( PyErr_GivenExceptionMatches( syntaxError.ptr(), errtype ) )
|
if ( PyErr_GivenExceptionMatches( syntaxError.ptr(), errtype ) )
|
||||||
{
|
{
|
||||||
|
boost::python::tuple errValueObj( boost::python::handle<>( boost::python::borrowed(errvalue) ) );
|
||||||
|
|
||||||
|
Py_XDECREF(errvalueStr);
|
||||||
|
|
||||||
if ( errValueObj[0] == "unexpected EOF while parsing" )
|
if ( errValueObj[0] == "unexpected EOF while parsing" )
|
||||||
{
|
{
|
||||||
commandCompleted = false;
|
commandCompleted = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user