[0.3.x] added : onChangeSymbolPaths event ( Symbol paths has been changed )

git-svn-id: https://pykd.svn.codeplex.com/svn@90985 9b283d60-5439-405e-af05-b73fd8c4d996
This commit is contained in:
SND\kernelnet_cp 2016-05-17 09:57:37 +00:00 committed by Mikhail I. Izmestev
parent fe9dad382d
commit b1bf26e0af
4 changed files with 28 additions and 1 deletions

View File

@ -421,6 +421,29 @@ void EventHandler::onChangeLocalScope()
m_pystate = PyEval_SaveThread(); m_pystate = PyEval_SaveThread();
} }
/////////////////////////////////////////////////////////////////////////////////
void EventHandler::onChangeSymbolPaths()
{
PyEval_RestoreThread( m_pystate );
try {
python::override pythonHandler = get_override("onChangeSymbolPaths");
if ( pythonHandler )
{
pythonHandler();
}
}
catch (const python::error_already_set &)
{
printException();
}
m_pystate = PyEval_SaveThread();
}
///////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////////
void EventHandler::onChangeBreakpoints() void EventHandler::onChangeBreakpoints()

View File

@ -38,6 +38,7 @@ public:
virtual void onExecutionStatusChange(kdlib::ExecutionStatus executionStatus); virtual void onExecutionStatusChange(kdlib::ExecutionStatus executionStatus);
virtual void onCurrentThreadChange(kdlib::THREAD_DEBUG_ID threadid); virtual void onCurrentThreadChange(kdlib::THREAD_DEBUG_ID threadid);
virtual void onChangeLocalScope(); virtual void onChangeLocalScope();
virtual void onChangeSymbolPaths();
virtual void onChangeBreakpoints(); virtual void onChangeBreakpoints();
virtual void onDebugOutput(const std::wstring& text); virtual void onDebugOutput(const std::wstring& text);
virtual void onStartInput(); virtual void onStartInput();

View File

@ -2,7 +2,7 @@
#define PYKD_VERSION_MAJOR 0 #define PYKD_VERSION_MAJOR 0
#define PYKD_VERSION_MINOR 3 #define PYKD_VERSION_MINOR 3
#define PYKD_VERSION_SUBVERSION 1 #define PYKD_VERSION_SUBVERSION 1
#define PYKD_VERSION_BUILDNO 1 #define PYKD_VERSION_BUILDNO 3
#define __VER_STR2__(x) #x #define __VER_STR2__(x) #x
#define __VER_STR1__(x) __VER_STR2__(x) #define __VER_STR1__(x) __VER_STR2__(x)

View File

@ -1127,6 +1127,9 @@ BOOST_PYTHON_MODULE( pykd )
.def( "onChangeLocalScope", &EventHandler::onChangeLocalScope, .def( "onChangeLocalScope", &EventHandler::onChangeLocalScope,
"The current local scope has been changed.\n" "The current local scope has been changed.\n"
"There is no return value" ) "There is no return value" )
.def("onChangeSymbolPaths", &EventHandler::onChangeSymbolPaths,
"Symbol paths has been changed.\n"
"There is no return value" )
.def("onChangeBreakpoints", &EventHandler::onChangeBreakpoints, .def("onChangeBreakpoints", &EventHandler::onChangeBreakpoints,
"Breakpoints is changed for current process" ) "Breakpoints is changed for current process" )
.def( "onDebugOutput", &EventHandler::onDebugOutput, .def( "onDebugOutput", &EventHandler::onDebugOutput,