From 949a4954aa61b8ec1dd5d62aa1b64dc5f629f527 Mon Sep 17 00:00:00 2001 From: Martin Fuchs Date: Sun, 30 Nov 2003 17:13:28 +0000 Subject: [PATCH] added -break command line option for debug breakpoints svn path=/trunk/; revision=6821 --- reactos/subsys/system/explorer/explorer.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/reactos/subsys/system/explorer/explorer.cpp b/reactos/subsys/system/explorer/explorer.cpp index 6e17b2df1eb..da8d27080ec 100644 --- a/reactos/subsys/system/explorer/explorer.cpp +++ b/reactos/subsys/system/explorer/explorer.cpp @@ -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"));