added -break command line option for debug breakpoints
authorMartin Fuchs <fuchs.martin@gmail.com>
Sun, 30 Nov 2003 17:13:28 +0000 (17:13 +0000)
committerMartin Fuchs <fuchs.martin@gmail.com>
Sun, 30 Nov 2003 17:13:28 +0000 (17:13 +0000)
svn path=/trunk/; revision=6821

reactos/subsys/system/explorer/explorer.cpp

index 6e17b2d..da8d270 100644 (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"));