This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
[binutils-gdb] Swap two sentences in the Pretty Printing API node
- From: Tom Tromey <tromey at sourceware dot org>
- To: gdb-cvs at sourceware dot org
- Date: 10 Sep 2018 13:50:26 -0000
- Subject: [binutils-gdb] Swap two sentences in the Pretty Printing API node
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=27a9fec6aa2637715a4631f79fb46372a37f868a
commit 27a9fec6aa2637715a4631f79fb46372a37f868a
Author: Tom Tromey <tom@tromey.com>
Date: Sat Sep 8 13:50:09 2018 -0600
Swap two sentences in the Pretty Printing API node
I thought the start of the Pretty Printing API node read a bit
strangely. This patch swaps the first two sentences, which seems
better.
gdb/doc/ChangeLog
2018-09-10 Tom Tromey <tom@tromey.com>
* python.texi (Pretty Printing API): Swap sentence order.
Diff:
---
gdb/doc/ChangeLog | 4 ++++
gdb/doc/python.texi | 5 ++---
2 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog
index e1a3c86..8a1341c 100644
--- a/gdb/doc/ChangeLog
+++ b/gdb/doc/ChangeLog
@@ -1,5 +1,9 @@
2018-09-10 Tom Tromey <tom@tromey.com>
+ * python.texi (Pretty Printing API): Swap sentence order.
+
+2018-09-10 Tom Tromey <tom@tromey.com>
+
PR python/16461:
* python.texi (Values From Inferior): Mention use of virtual
table.
diff --git a/gdb/doc/python.texi b/gdb/doc/python.texi
index e310c16..545e0c3 100644
--- a/gdb/doc/python.texi
+++ b/gdb/doc/python.texi
@@ -1253,10 +1253,9 @@ Python module (@pxref{gdb.types}).
@subsubsection Pretty Printing API
@cindex python pretty printing api
-An example output is provided (@pxref{Pretty Printing}).
-
A pretty-printer is just an object that holds a value and implements a
-specific interface, defined here.
+specific interface, defined here. An example output is provided
+(@pxref{Pretty Printing}).
@defun pretty_printer.children (self)
@value{GDBN} will call this method on a pretty-printer to compute the