added -break command line option for debug breakpoints

svn path=/trunk/; revision=6821
This commit is contained in:
Martin Fuchs 2003-11-30 17:13:28 +00:00
parent d9cd4fb435
commit 949a4954aa

View file

@ -268,6 +268,15 @@ int WINAPI _tWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR lpCmdL
if (_tcsstr(lpCmdLine,TEXT("-debug")))
use_gdb_stub = true;
if (_tcsstr(lpCmdLine,TEXT("-break"))) {
LOG(TEXT("debugger breakpoint"));
#ifdef _MSC_VER
__asm int 3
#else
asm("int3");
#endif
}
// activate GDB remote debugging stub if no other debugger is running
if (use_gdb_stub) {
LOG(TEXT("waiting for debugger connection...\n"));