diff options
author | Pedro Alves <palves@redhat.com> | 2009-01-26 16:24:27 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2009-01-26 16:24:27 +0000 |
commit | 3c16cced400ed60fb35435dd28c31e982a064328 (patch) | |
tree | 01825655630499a67aee7ba74ea8bfb84bec27f7 /gdb/doc | |
parent | 62709adfbe2476eaada1b889fbea2f59e21d46cd (diff) | |
download | gdb-3c16cced400ed60fb35435dd28c31e982a064328.zip gdb-3c16cced400ed60fb35435dd28c31e982a064328.tar.gz gdb-3c16cced400ed60fb35435dd28c31e982a064328.tar.bz2 |
gdb/
Add "maint set|show internal-error|internal-warning quit|corefile
ask|yes|no" commands.
PR gdb/7580:
* utils.c (internal_problem_ask, internal_problem_yes)
(internal_problem_no, internal_problem_modes): New.
(struct internal_problem): Remove FIXME. Make should_quit and
should_dump_core types to char *.
(internal_vproblem, internal_error_problem)
(internal_warning_problem): Adjust.
(set_internal_problem_cmd, show_internal_problem_cmd): New dummy
functions.
(add_internal_problem_command): New.
(_initialize_utils): New.
gdb/doc/
PR gdb/7580:
* gdb.texinfo (Maintenance Commands): Document "maint set|show
internal-error|internal-warning quit|corefile ask|yes|no".
Diffstat (limited to 'gdb/doc')
-rw-r--r-- | gdb/doc/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/doc/gdb.texinfo | 27 |
2 files changed, 33 insertions, 0 deletions
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog index e708185..4ca49a86 100644 --- a/gdb/doc/ChangeLog +++ b/gdb/doc/ChangeLog @@ -1,5 +1,11 @@ 2009-01-26 Pedro Alves <pedro@codesourcery.com> + PR gdb/7580: + * gdb.texinfo (Maintenance Commands): Document "maint set|show + internal-error|internal-warning quit|corefile ask|yes|no". + +2009-01-26 Pedro Alves <pedro@codesourcery.com> + * gdb.texinfo (Using the `gdbserver' Program): Document --remote-debug. diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index add576d..e827bef 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -24798,6 +24798,33 @@ Create a core file? (y or n) @kbd{n} (@value{GDBP}) @end smallexample +@cindex @value{GDBN} internal error +@cindex internal errors, control of @value{GDBN} behavior + +@kindex maint set internal-error +@kindex maint show internal-error +@kindex maint set internal-warning +@kindex maint show internal-warning +@item maint set internal-error @var{action} [ask|yes|no] +@itemx maint show internal-error @var{action} +@itemx maint set internal-warning @var{action} [ask|yes|no] +@itemx maint show internal-warning @var{action} +When @value{GDBN} reports an internal problem (error or warning) it +gives the user the opportunity to both quit @value{GDBN} and create a +core file of the current @value{GDBN} session. These commands let you +override the default behaviour for each particular @var{action}, +described in the table below. + +@table @samp +@item quit +You can specify that @value{GDBN} should always (yes) or never (no) +quit. The default is to ask the user what to do. + +@item corefile +You can specify that @value{GDBN} should always (yes) or never (no) +create a core file. The default is to ask the user what to do. +@end table + @kindex maint packet @item maint packet @var{text} If @value{GDBN} is talking to an inferior via the serial protocol, |