mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-02-23 13:21:43 +08:00
* gdb.texinfo (Signals): Clarify the default setting of signal
handling.
This commit is contained in:
parent
dee0a8f47f
commit
24f931295e
@ -1,3 +1,8 @@
|
|||||||
|
2001-06-13 Eli Zaretskii <eliz@is.elta.co.il>
|
||||||
|
|
||||||
|
* gdb.texinfo (Signals): Clarify the default setting of signal
|
||||||
|
handling.
|
||||||
|
|
||||||
2001-05-14 Andrew Cagney <ac131313@redhat.com>
|
2001-05-14 Andrew Cagney <ac131313@redhat.com>
|
||||||
|
|
||||||
* gdbint.texinfo (CLEAR_DEFERRED_STORES): Delete stray @item
|
* gdbint.texinfo (CLEAR_DEFERRED_STORES): Delete stray @item
|
||||||
|
@ -3454,8 +3454,9 @@ program. You can tell @value{GDBN} in advance what to do for each kind of
|
|||||||
signal.
|
signal.
|
||||||
|
|
||||||
@cindex handling signals
|
@cindex handling signals
|
||||||
Normally, @value{GDBN} is set up to ignore non-erroneous signals like @code{SIGALRM}
|
Normally, @value{GDBN} is set up to let the non-erroneous signals like
|
||||||
(so as not to interfere with their role in the functioning of your program)
|
@code{SIGALRM} be silently passed to your program
|
||||||
|
(so as not to interfere with their role in the program's functioning)
|
||||||
but to stop your program immediately whenever an error signal happens.
|
but to stop your program immediately whenever an error signal happens.
|
||||||
You can change these settings with the @code{handle} command.
|
You can change these settings with the @code{handle} command.
|
||||||
|
|
||||||
@ -3473,7 +3474,7 @@ the defined types of signals.
|
|||||||
@item handle @var{signal} @var{keywords}@dots{}
|
@item handle @var{signal} @var{keywords}@dots{}
|
||||||
Change the way @value{GDBN} handles signal @var{signal}. @var{signal}
|
Change the way @value{GDBN} handles signal @var{signal}. @var{signal}
|
||||||
can be the number of a signal or its name (with or without the
|
can be the number of a signal or its name (with or without the
|
||||||
@samp{SIG} at the beginning); a list of signal numberss of the form
|
@samp{SIG} at the beginning); a list of signal numbers of the form
|
||||||
@samp{@var{low}-@var{high}}; or the word @samp{all}, meaning all the
|
@samp{@var{low}-@var{high}}; or the word @samp{all}, meaning all the
|
||||||
known signals. The @var{keywords} say what change to make.
|
known signals. The @var{keywords} say what change to make.
|
||||||
@end table
|
@end table
|
||||||
@ -3519,6 +3520,11 @@ after @value{GDBN} reports a signal, you can use the @code{handle}
|
|||||||
command with @code{pass} or @code{nopass} to control whether your
|
command with @code{pass} or @code{nopass} to control whether your
|
||||||
program sees that signal when you continue.
|
program sees that signal when you continue.
|
||||||
|
|
||||||
|
The default is set to @code{nostop}, @code{noprint}, @code{pass} for
|
||||||
|
non-erroneous signals such as @code{SIGALRM}, @code{SIGWINCH} and
|
||||||
|
@code{SIGCHLD}, and to @code{stop}, @code{print}, @code{pass} for the
|
||||||
|
erroneous signals.
|
||||||
|
|
||||||
You can also use the @code{signal} command to prevent your program from
|
You can also use the @code{signal} command to prevent your program from
|
||||||
seeing a signal, or cause it to see a signal it normally would not see,
|
seeing a signal, or cause it to see a signal it normally would not see,
|
||||||
or to give it any signal at any time. For example, if your program stopped
|
or to give it any signal at any time. For example, if your program stopped
|
||||||
|
Loading…
Reference in New Issue
Block a user