From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1726) id 25D183839C4D; Thu, 19 May 2022 14:22:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 25D183839C4D 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: fix inconsistent info pretty-printer example X-Act-Checkin: binutils-gdb X-Git-Author: Nikolaos Chatzikonstantinou X-Git-Refname: refs/heads/master X-Git-Oldrev: 95086e1e54a726a0d7671d70640bc76e4fddf198 X-Git-Newrev: 8ea87c7296fce00d0223f504f0a24ac701347f23 Message-Id: <20220519142222.25D183839C4D@sourceware.org> Date: Thu, 19 May 2022 14:22:22 +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:22 -0000 https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D8ea87c7296fc= e00d0223f504f0a24ac701347f23 commit 8ea87c7296fce00d0223f504f0a24ac701347f23 Author: Nikolaos Chatzikonstantinou Date: Thu May 19 15:06:53 2022 +0100 gdb/doc: fix inconsistent info pretty-printer example =20 The example for 'info pretty-printer' in the manual passes an object-regexp in some cases, but presents output as though no object-regexp was passed. =20 This commit fixes the two mistakes, in one case, fixing the output to filter based on object-regexp, and in the other, to remove the object-regexp from the command and leave all the output. Diff: --- gdb/doc/gdb.texinfo | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index 8cf97866ccc..68f7aba8d7d 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -12101,8 +12101,6 @@ library2.so: 1 printer disabled 1 of 3 printers enabled (gdb) info pretty-printer library2 -library1.so: - foo [disabled] library2.so: bar bar1 [disabled] @@ -12110,7 +12108,7 @@ library2.so: (gdb) disable pretty-printer library2 bar 1 printer disabled 0 of 3 printers enabled -(gdb) info pretty-printer library2 +(gdb) info pretty-printer library1.so: foo [disabled] library2.so: