[0.2.x] fixed : win32 build

git-svn-id: https://pykd.svn.codeplex.com/svn@79986 9b283d60-5439-405e-af05-b73fd8c4d996
This commit is contained in:
SND\kernelnet_cp 2012-10-03 12:11:28 +00:00 committed by Mikhail I. Izmestev
parent 642bb01c57
commit 3a4a5400b8
3 changed files with 5 additions and 7 deletions

View File

@ -63,8 +63,6 @@ void getStackTrace(std::vector<STACK_FRAME_DESC> &frames);
// callback events // callback events
#define DEBUG_CALLBACK_METHODTYPE __cdecl
enum DEBUG_CALLBACK_RESULT { enum DEBUG_CALLBACK_RESULT {
DebugCallbackProceed = 0, DebugCallbackProceed = 0,
DebugCallbackNoChange = 1, DebugCallbackNoChange = 1,
@ -75,7 +73,7 @@ enum DEBUG_CALLBACK_RESULT {
struct DEBUG_EVENT_CALLBACK { struct DEBUG_EVENT_CALLBACK {
virtual DEBUG_CALLBACK_RESULT DEBUG_CALLBACK_METHODTYPE OnBreakpoint( ULONG bpId ) = 0; virtual DEBUG_CALLBACK_RESULT OnBreakpoint( ULONG bpId ) = 0;
}; };
void eventRegisterCallbacks( const DEBUG_EVENT_CALLBACK *callbacks ); void eventRegisterCallbacks( const DEBUG_EVENT_CALLBACK *callbacks );

View File

@ -23,7 +23,7 @@ EventHandler::~EventHandler()
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
DEBUG_CALLBACK_RESULT DEBUG_CALLBACK_METHODTYPE EventHandlerImpl::OnBreakpoint( ULONG bpId ) DEBUG_CALLBACK_RESULT EventHandlerImpl::OnBreakpoint( ULONG bpId )
{ {
BpMap::iterator foundIt = m_bpMap.find( bpId ); BpMap::iterator foundIt = m_bpMap.find( bpId );
if ( foundIt == m_bpMap.end() ) if ( foundIt == m_bpMap.end() )

View File

@ -21,7 +21,7 @@ public:
private: private:
virtual DEBUG_CALLBACK_RESULT DEBUG_CALLBACK_METHODTYPE OnBreakpoint( ULONG bpId ) = 0; virtual DEBUG_CALLBACK_RESULT OnBreakpoint( ULONG bpId ) = 0;
}; };
////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////
@ -32,7 +32,7 @@ class EventHandlerWrap : public python::wrapper<EventHandler>, public EventHandl
public: public:
virtual DEBUG_CALLBACK_RESULT DEBUG_CALLBACK_METHODTYPE OnBreakpoint( ULONG Id ) { virtual DEBUG_CALLBACK_RESULT OnBreakpoint( ULONG Id ) {
return handler("onBreakpoint", Id); return handler("onBreakpoint", Id);
} }
@ -100,7 +100,7 @@ public:
private: private:
virtual DEBUG_CALLBACK_RESULT DEBUG_CALLBACK_METHODTYPE OnBreakpoint( ULONG bpId ); virtual DEBUG_CALLBACK_RESULT OnBreakpoint( ULONG bpId );
private: private: