--- gdb-7.5/gdb/doc/gdb.texinfo.orig 2012-07-20 21:59:05 +0400 +++ gdb-7.5/gdb/doc/gdb.texinfo 2012-09-10 06:18:28 +0400 @@ -977,6 +977,11 @@ @cindex @code{-p} Connect to process ID @var{number}, as with the @code{attach} command. +@item -event @var{number} +@cindex @code{--event} +Signal event ID @var{number} after attaching to a process. Used on W32 to +make crashing process unblock. + @item -command @var{file} @itemx -x @var{file} @cindex @code{--command} @@ -2390,6 +2395,16 @@ process continue running, you may use the @code{continue} command after attaching @value{GDBN} to the process. +On W32 when system detects unhandled exception in a process, it runs default +exception handler, which starts a debugger, and then proceeds to wait +indefinitely on an event object. System might ask user to choose a debugger, +or, if HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AeDebug registry key +is defined, it will run the debugger program with the command specified in +that key. First "%ld" token in that key will be replaced with the process ID, +second "%ld" token will be replaced with ID of the event the process is +waiting upon. Once GDB attaches to the process, it will signal that event, +allowing execution to continue, and will catch the exception. + @table @code @kindex detach @item detach