diff options
author | Руслан Ижбулатов <lrn1986@gmail.com> | 2016-07-23 11:38:03 +0300 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2016-07-23 11:38:03 +0300 |
commit | 463888ab6be549e8dcc9eac36dc07c1c237e2968 (patch) | |
tree | 41ef8df68696e267f5f6d35a600e935d31767f2c /gdb/doc | |
parent | cac709756b00c57a375f40e032d2eb4f5dbd3804 (diff) | |
download | gdb-463888ab6be549e8dcc9eac36dc07c1c237e2968.zip gdb-463888ab6be549e8dcc9eac36dc07c1c237e2968.tar.gz gdb-463888ab6be549e8dcc9eac36dc07c1c237e2968.tar.bz2 |
Support JIT debugging on MS-Windows
gdb/ChangeLog:
2016-06-30 Руслан Ижбулатов <lrn1986@gmail.com>
PR gdb/14529
* windows-nat.c (signal_event_command): New command 'signal-event'
for W32 JIT debug support.
* NEWS: Add an entry about the new 'signal-event' command.
gdb/doc/ChangeLog:
2016-06-30 Руслан Ижбулатов <lrn1986@gmail.com>
* gdb.texinfo (Cygwin Native): Document the new 'signal-event'
command.
Diffstat (limited to 'gdb/doc')
-rw-r--r-- | gdb/doc/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/doc/gdb.texinfo | 29 |
2 files changed, 35 insertions, 0 deletions
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog index f133f33..e45d925 100644 --- a/gdb/doc/ChangeLog +++ b/gdb/doc/ChangeLog @@ -1,3 +1,8 @@ +2016-06-30 Руслан Ижбулатов <lrn1986@gmail.com> + + * gdb.texinfo (Cygwin Native): Document the new 'signal-event' + command. + 2016-07-13 Tom Tromey <tom@tromey.com> PR python/15620, PR python/18620: @@ -11724,4 +11729,5 @@ mode: change-log left-margin: 8 fill-column: 74 version-control: never +coding: utf-8 End: diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index a068622..285a912 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -21520,6 +21520,35 @@ This command displays thread specific information stored in the Thread Information Block (readable on the X86 CPU family using @code{$fs} selector for 32-bit programs and @code{$gs} for 64-bit programs). +@kindex signal-event +@item signal-event @var{id} +This command signals an event with user-provided @var{id}. Used to resume +crashing process when attached to it using MS-Windows JIT debugging (AeDebug). + +To use it, create or edit the following keys in +@code{HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AeDebug} and/or +@code{HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows NT\CurrentVersion\AeDebug} +(for x86_64 versions): + +@itemize @minus +@item +@code{Debugger} (REG_SZ) --- a command to launch the debugger. +Suggested command is: @code{@var{fully-qualified-path-to-gdb.exe} -ex +"attach %ld" -ex "signal-event %ld" -ex "continue"}. + +The first @code{%ld} will be replaced by the process ID of the +crashing process, the second @code{%ld} will be replaced by the ID of +the event that blocks the crashing process, waiting for @value{GDBN} +to attach. + +@item +@code{Auto} (REG_SZ) --- either @code{1} or @code{0}. @code{1} will +make the system run debugger specified by the Debugger key +automatically, @code{0} will cause a dialog box with ``OK'' and +``Cancel'' buttons to appear, which allows the user to either +terminate the crashing process (OK) or debug it (Cancel). +@end itemize + @kindex set cygwin-exceptions @cindex debugging the Cygwin DLL @cindex Cygwin DLL, debugging |