]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
[gdb/doc] Fix documentation of handle SIGKILL
authorTom de Vries <tdevries@suse.de>
Mon, 24 Feb 2025 15:51:10 +0000 (16:51 +0100)
committerTom de Vries <tdevries@suse.de>
Mon, 24 Feb 2025 15:51:10 +0000 (16:51 +0100)
Here ( https://sourceware.org/gdb/current/onlinedocs/gdb.html/Signals.html ) I
read:
...
GDB has the ability to detect any occurrence of a signal in your program.  You
can tell GDB in advance what to do for each kind of signal.
...

However, here ( https://man7.org/linux/man-pages/man2/ptrace.2.html ) I read:
...
While being traced, the tracee will stop each time a signal is
delivered, even if the signal is being ignored.  (An exception is
SIGKILL, which has its usual effect.)
...

So, it seems to be that for SIGKILL we can't tell GDB in advance what to do.

Fix the documentation to reflect this.

Approved-By: Eli Zaretskii <eliz@gnu.org>
PR gdb/32714
Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=32714

gdb/doc/gdb.texinfo

index 19abd97838fb15a8068fabdb4033f9ab493ca021..29c0118dda21da6900c028451b21cd952bace219 100644 (file)
@@ -6900,7 +6900,7 @@ fatal so it can carry out the purpose of the interrupt: to kill the program.
 
 @value{GDBN} has the ability to detect any occurrence of a signal in your
 program.  You can tell @value{GDBN} in advance what to do for each kind of
-signal.
+signal, apart from SIGKILL, which has its usual effect regardless.
 
 When specifying a signal by number, @value{GDBN} translates the number
 to the target platform according to the corresponding signal name.