From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1726) id 3B07A383F843; Thu, 19 May 2022 14:22:27 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3B07A383F843 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Andrew Burgess To: gdb-cvs@sourceware.org Subject: [binutils-gdb] gdb/doc: make use of group/end group in 'info pretty-printers' example X-Act-Checkin: binutils-gdb X-Git-Author: Andrew Burgess X-Git-Refname: refs/heads/master X-Git-Oldrev: 8ea87c7296fce00d0223f504f0a24ac701347f23 X-Git-Newrev: 62ec8e6dad018082e33e7dcb0633f28332f3520c Message-Id: <20220519142227.3B07A383F843@sourceware.org> Date: Thu, 19 May 2022 14:22:27 +0000 (GMT) X-BeenThere: gdb-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 May 2022 14:22:27 -0000 https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D62ec8e6dad01= 8082e33e7dcb0633f28332f3520c commit 62ec8e6dad018082e33e7dcb0633f28332f3520c Author: Andrew Burgess Date: Thu May 19 15:13:22 2022 +0100 gdb/doc: make use of group/end group in 'info pretty-printers' example =20 The 'info pretty-printers' example is pretty long and consists of many commands and their output. =20 Currently, when the pdf manual is generated this example spans a page-break, with the page-break falling part way through some example output from GDB. =20 This commit breaks up the example using @group .... @end group, within each group is a single GDB command and all its output. =20 Now, when the pdf manual is created, the page-break is placed after the output of one GDB command, and before the subsequent command, this looks much nicer. Diff: --- gdb/doc/gdb.texinfo | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index 68f7aba8d7d..76fc548fc84 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -12075,6 +12075,7 @@ another from library2.so named @code{bar} that prin= ts two types of objects, @code{bar1} and @code{bar2}. =20 @smallexample +@group (gdb) info pretty-printer library1.so: foo @@ -12082,11 +12083,15 @@ library2.so: bar bar1 bar2 +@end group +@group (gdb) info pretty-printer library2 library2.so: bar bar1 bar2 +@end group +@group (gdb) disable pretty-printer library1 1 printer disabled 2 of 3 printers enabled @@ -12097,6 +12102,8 @@ library2.so: bar bar1 bar2 +@end group +@group (gdb) disable pretty-printer library2 bar;bar1 1 printer disabled 1 of 3 printers enabled @@ -12105,6 +12112,8 @@ library2.so: bar bar1 [disabled] bar2 +@end group +@group (gdb) disable pretty-printer library2 bar 1 printer disabled 0 of 3 printers enabled @@ -12115,6 +12124,7 @@ library2.so: bar [disabled] bar1 [disabled] bar2 +@end group @end smallexample =20 Note that for @code{bar} the entire printer can be disabled,