Add Windows implementation of breakpoint

This commit is contained in:
Danny Robson 2012-05-11 12:15:46 +10:00
parent 9624aff9df
commit 63cde2272b

View File

@ -20,6 +20,7 @@
#include "debug.hpp"
#include "backtrace.hpp"
#include "log.hpp"
#include "platform.hpp"
#include <cstdlib>
#include <iostream>
@ -39,7 +40,13 @@ void
panic (void)
{ panic ("NFI"); }
#if defined(PLATFORM_WIN32)
#include <windows.h>
void
breakpoint (void) {
DebugBreak ();
}
#else
void
breakpoint (void) {
#if defined (__x86_64) || defined (__i386)
@ -48,6 +55,7 @@ breakpoint (void) {
raise (SIGINT);
#endif
}
#endif
void