aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2018-09-08 10:16:46 -0600
committerTom Tromey <tom@tromey.com>2018-09-10 07:44:25 -0600
commit521b499b963562793e5dbbcc1df8357cdf2757a7 (patch)
tree3500f2e25e682d58fdb84b0dd1b2e563cda0b24f /gdb
parent4a5a194ae8a871a781d4cdc73c7ba3ae7deafbaa (diff)
downloadbinutils-521b499b963562793e5dbbcc1df8357cdf2757a7.zip
binutils-521b499b963562793e5dbbcc1df8357cdf2757a7.tar.gz
binutils-521b499b963562793e5dbbcc1df8357cdf2757a7.tar.bz2
Update Python frame filter documentation
This fixes a few frame filter documentation omissions noted in PR python/17752. gdb/doc/ChangeLog 2018-09-10 Tom Tromey <tom@tromey.com> PR python/17752: * python.texi (Frame Filter API): Remove period from subsection title. Mention 100 as good default priority. (Frame Decorator API): Remove period from subsection title. Mention FrameDecorator module.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/doc/ChangeLog8
-rw-r--r--gdb/doc/python.texi13
2 files changed, 18 insertions, 3 deletions
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog
index a4971ce..f8b958d 100644
--- a/gdb/doc/ChangeLog
+++ b/gdb/doc/ChangeLog
@@ -1,5 +1,13 @@
2018-09-10 Tom Tromey <tom@tromey.com>
+ PR python/17752:
+ * python.texi (Frame Filter API): Remove period from subsection
+ title. Mention 100 as good default priority.
+ (Frame Decorator API): Remove period from subsection title.
+ Mention FrameDecorator module.
+
+2018-09-10 Tom Tromey <tom@tromey.com>
+
PR python/23108:
* python.texi (Exception Handling): Rearrange gdb.GdbError text
and add a table.
diff --git a/gdb/doc/python.texi b/gdb/doc/python.texi
index 59b6b3b..2b3c8a9 100644
--- a/gdb/doc/python.texi
+++ b/gdb/doc/python.texi
@@ -1625,7 +1625,7 @@ order to avoid holding information that could become stale as the
inferior changed.
@node Frame Filter API
-@subsubsection Filtering Frames.
+@subsubsection Filtering Frames
@cindex frame filters api
Frame filters are Python objects that manipulate the visibility of a
@@ -1777,11 +1777,11 @@ frame filters. Although @code{priority} can be negative, it is
recommended practice to assume zero is the lowest priority that a
frame filter can be assigned. Frame filters that have the same
priority are executed in unsorted order in that priority slot. This
-attribute is mandatory.
+attribute is mandatory. 100 is a good default priority.
@end defvar
@node Frame Decorator API
-@subsubsection Decorating Frames.
+@subsubsection Decorating Frames
@cindex frame decorator api
Frame decorators are sister objects to frame filters (@pxref{Frame
@@ -1805,6 +1805,13 @@ boilerplate code to decorate the content of a @code{gdb.Frame}. It is
recommended that other frame decorators inherit and extend this
object, and only to override the methods needed.
+@tindex gdb.FrameDecorator
+@code{FrameDecorator} is defined in the Python module
+@code{gdb.FrameDecorator}, so your code can import it like:
+@smallexample
+from gdb.FrameDecorator import FrameDecorator
+@end smallexample
+
@defun FrameDecorator.elided (self)
The @code{elided} method groups frames together in a hierarchical