1
0
forked from 0ad/0ad

add debug_break impl

This was SVN commit r728.
This commit is contained in:
janwas 2004-07-12 16:40:57 +00:00
parent af58165890
commit 7a199f8f16
4 changed files with 19 additions and 0 deletions

View File

@ -101,6 +101,12 @@ __asm
}
void ia32_debug_break()
{
__asm int 3
}
//
// data returned by cpuid()
// each function using this data must call cpuid (no-op if already called)

View File

@ -39,6 +39,10 @@ extern u64 rdtsc();
extern uint _control87(uint new_cw, uint mask);
extern void ia32_debug_break();
// CPU caps (128 bits)
// do not change the order! (breaks cpuid())
enum CpuCap

View File

@ -57,6 +57,12 @@ void wdisplay_msg(const wchar_t* caption, const wchar_t* msg)
}
void win_debug_break()
{
DebugBreak();
}
// need to shoehorn printf-style variable params into
// the OutputDebugString call.

View File

@ -19,4 +19,7 @@
#define WINAPI __stdcall
#define WINAPIV __cdecl
extern "C" void win_debug_break();
#endif // #ifndef __WIN_H__