aboutsummaryrefslogtreecommitdiff
path: root/gdb/doc
diff options
context:
space:
mode:
authorNikolaos Chatzikonstantinou <nchatz314@gmail.com>2022-05-19 15:06:53 +0100
committerAndrew Burgess <aburgess@redhat.com>2022-05-19 15:22:03 +0100
commit8ea87c7296fce00d0223f504f0a24ac701347f23 (patch)
treef67ac4c147f29ef59c1029053bc489ef74dc59c1 /gdb/doc
parent95086e1e54a726a0d7671d70640bc76e4fddf198 (diff)
downloadgdb-8ea87c7296fce00d0223f504f0a24ac701347f23.zip
gdb-8ea87c7296fce00d0223f504f0a24ac701347f23.tar.gz
gdb-8ea87c7296fce00d0223f504f0a24ac701347f23.tar.bz2
gdb/doc: fix inconsistent info pretty-printer example
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. 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.
Diffstat (limited to 'gdb/doc')
-rw-r--r--gdb/doc/gdb.texinfo4
1 files changed, 1 insertions, 3 deletions
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
index 8cf9786..68f7aba 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: