Fix broken forced crash for clang

clang discards stores to *0.
Use __builtin_trap() on GCC and derivates, which plays nicely with
gdb.
This commit is contained in:
dhewg 2011-12-03 01:37:52 +01:00
parent 238a21b95f
commit 795b77a896

View file

@ -1355,7 +1355,11 @@ static void Com_Crash_f( const idCmdArgs &args ) {
return;
}
#ifdef __GNUC__
__builtin_trap();
#else
* ( int * ) 0 = 0x12345678;
#endif
}
/*