mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
added -break command line option for debug breakpoints
svn path=/trunk/; revision=6821
This commit is contained in:
parent
d9cd4fb435
commit
949a4954aa
1 changed files with 9 additions and 0 deletions
|
@ -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"));
|
||||
|
|
Loading…
Reference in a new issue