2006-04-12 01:59:08 +02:00
|
|
|
/**
|
|
|
|
* =========================================================================
|
|
|
|
* File : wdbg.h
|
|
|
|
* Project : 0 A.D.
|
|
|
|
* Description : Win32 debug support code and exception handler.
|
|
|
|
* =========================================================================
|
|
|
|
*/
|
|
|
|
|
2007-05-07 18:33:24 +02:00
|
|
|
// license: GPL; see lib/license.txt
|
2005-01-27 17:18:22 +01:00
|
|
|
|
2007-05-04 19:30:32 +02:00
|
|
|
#ifndef INCLUDED_WDBG
|
|
|
|
#define INCLUDED_WDBG
|
2004-07-12 18:38:48 +02:00
|
|
|
|
2005-10-24 01:57:59 +02:00
|
|
|
#if HAVE_MS_ASM
|
2005-01-25 19:27:00 +01:00
|
|
|
# define debug_break() __asm { int 3 }
|
|
|
|
#else
|
|
|
|
# error "port this or define to implementation function"
|
|
|
|
#endif
|
|
|
|
|
2005-08-09 18:23:19 +02:00
|
|
|
// internal use only:
|
|
|
|
extern void wdbg_set_thread_name(const char* name);
|
|
|
|
|
2007-05-04 19:30:32 +02:00
|
|
|
// see rationale at definition.
|
|
|
|
struct _EXCEPTION_POINTERS;
|
|
|
|
extern long __stdcall wdbg_exception_filter(_EXCEPTION_POINTERS* ep);
|
|
|
|
|
|
|
|
#endif // #ifndef INCLUDED_WDBG
|