diff options
author | Phil Muldoon <pmuldoon@redhat.com> | 2011-12-16 15:55:40 +0000 |
---|---|---|
committer | Phil Muldoon <pmuldoon@redhat.com> | 2011-12-16 15:55:40 +0000 |
commit | 80b6e7564ff0168d392e69a46ded01ce1bf3dd73 (patch) | |
tree | 937a8f34be597f9dd4243f2e3691748ead3ef84a /gdb/doc | |
parent | b93a1992f4b3668cae4682e16a8add34f8411a8c (diff) | |
download | gdb-80b6e7564ff0168d392e69a46ded01ce1bf3dd73.zip gdb-80b6e7564ff0168d392e69a46ded01ce1bf3dd73.tar.gz gdb-80b6e7564ff0168d392e69a46ded01ce1bf3dd73.tar.bz2 |
2011-12-16 Phil Muldoon <pmuldoon@redhat.com>
* testsuite/gdb.python/py-function.exp: Change "on" to "full" for
python print-stack. Add set/show python print-stack
off|full|message tests.
2011-12-16 Phil Muldoon <pmuldoon@redhat.com>
* python/python.c: Define python_excp_enums.
(eval_python_from_control_command): Do not call gdbpy_print_stack.
(python_command): Ditto.
(gdbpy_print_stack): Rewrite to use new enum constants.
(maint_set_python): Remove function.
(maint_show_python): Ditto.
(_initialize_python): Do not add "maint" commands. Add "set/show
python print-stack commands".
* NEWS: Update to reflect removal for "maint set/show
print-stack"
2011-12-16 Phil Muldoon <pmuldoon@redhat.com>
* doc/gdb.texinfo (Python Commands): Remove "maint set/show print
stack". Add documentation for "set/show python print-stack".
Diffstat (limited to 'gdb/doc')
-rw-r--r-- | gdb/doc/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/doc/gdb.texinfo | 16 |
2 files changed, 11 insertions, 10 deletions
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog index 6cd0b9b..ca4730e 100644 --- a/gdb/doc/ChangeLog +++ b/gdb/doc/ChangeLog @@ -1,3 +1,8 @@ +2011-12-16 Phil Muldoon <pmuldoon@redhat.com> + + * doc/gdb.texinfo (Python Commands): Remove "maint set/show print + stack". Add documentation for "set/show python print-stack". + 2011-12-14 Pedro Alves <pedro@codesourcery.com> * gdb.texinfo (Implementing a Remote Stub): Explain that you diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index 925e66a..4787b82 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -21447,18 +21447,14 @@ End with a line saying just "end". 23 @end smallexample -@kindex maint set python print-stack -@item maint set python print-stack -This command is now deprecated. Instead use @code{set python -print-stack} - @kindex set python print-stack @item set python print-stack -By default, @value{GDBN} will not print a stack trace when an error -occurs in a Python script. This can be controlled using @code{set -python print-stack}: if @code{on}, then Python stack printing is -enabled; if @code{off}, the default, then Python stack printing is -disabled. +By default, @value{GDBN} will print only the message component of a +Python exception when an error occurs in a Python script. This can be +controlled using @code{set python print-stack}: if @code{full}, then +full Python stack printing is enabled; if @code{none}, then Python stack +and message printing is disabled; if @code{message}, the default, only +the message component of the error is printed. @end table It is also possible to execute a Python script from the @value{GDBN} |