2004-07-12 18:38:48 +02:00
|
|
|
#ifndef WDBG_H__
|
|
|
|
#define WDBG_H__
|
|
|
|
|
2005-01-23 19:07:34 +01:00
|
|
|
#include "lib/types.h"
|
2004-07-15 21:12:54 +02:00
|
|
|
|
2004-06-19 16:54:25 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2005-01-25 19:27:00 +01:00
|
|
|
#ifdef _MSC_VER
|
|
|
|
# define debug_break() __asm { int 3 }
|
|
|
|
#else
|
|
|
|
# error "port this or define to implementation function"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
2005-01-23 23:42:37 +01:00
|
|
|
// TODO: remove this from here, and make all the exception debugging stuff nicer
|
|
|
|
struct _EXCEPTION_POINTERS;
|
|
|
|
typedef struct _EXCEPTION_POINTERS* PEXCEPTION_POINTERS;
|
|
|
|
extern int debug_main_exception_filter(unsigned int code, PEXCEPTION_POINTERS ep);
|
2004-06-19 16:54:25 +02:00
|
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2004-07-12 18:38:48 +02:00
|
|
|
#endif // #ifndef WDBG_H__
|