diff options
author | Artur Shepilko <nomadbyte@gmail.com> | 2020-04-15 09:44:12 +0200 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2020-04-15 09:44:12 +0200 |
commit | 0ca4866abeb9ff668fe64064fc1bceb08ca63833 (patch) | |
tree | b11eab4292533747a6fe100aa0c553eb58858a5f | |
parent | 001890e1f9269697f7e0212430a51479271bdab2 (diff) | |
download | binutils-0ca4866abeb9ff668fe64064fc1bceb08ca63833.zip binutils-0ca4866abeb9ff668fe64064fc1bceb08ca63833.tar.gz binutils-0ca4866abeb9ff668fe64064fc1bceb08ca63833.tar.bz2 |
Fix makeinfo warnings in gdb.texinfo and python.texi docs
Building gdb-9.1 on a system that has an older version of makeinfo
(4.8) shows the following warnings:
-----------------
make[4]: Entering directory '/home/tester/gdb-9.1/build/gdb/doc'
makeinfo --split-size=5000000 --split-size=5000000 -I
../../../gdb/doc/../../readline/readline/doc -I ../../../gdb/doc/../mi
-I ../../../gdb/doc \
-o gdb.info ../../../gdb/doc/gdb.texinfo
../../../gdb/doc/gdb.texinfo:21867: warning: unlikely character [ in @var.
../../../gdb/doc/gdb.texinfo:21867: warning: unlikely character ] in @var.
../../../gdb/doc/gdb.texinfo:21868: warning: unlikely character [ in @var.
../../../gdb/doc/gdb.texinfo:21868: warning: unlikely character ] in @var.
../../../gdb/doc/gdb.texinfo:21869: warning: unlikely character [ in @var.
../../../gdb/doc/gdb.texinfo:21869: warning: unlikely character ] in @var.
../../../gdb/doc/gdb.texinfo:21872: warning: unlikely character [ in @var.
../../../gdb/doc/gdb.texinfo:21872: warning: unlikely character ] in @var.
../../../gdb/doc/gdb.texinfo:21874: warning: unlikely character [ in @var.
../../../gdb/doc/gdb.texinfo:21874: warning: unlikely character ] in @var.
../../../gdb/doc/gdb.texinfo:21876: warning: unlikely character [ in @var.
../../../gdb/doc/gdb.texinfo:21876: warning: unlikely character ] in @var.
../../../gdb/doc/gdb.texinfo:21879: warning: unlikely character [ in @var.
../../../gdb/doc/gdb.texinfo:21879: warning: unlikely character ] in @var.
../../../gdb/doc/gdb.texinfo:21931: warning: unlikely character [ in @var.
../../../gdb/doc/gdb.texinfo:21931: warning: unlikely character ] in @var.
../../../gdb/doc/gdb.texinfo:21933: warning: unlikely character [ in @var.
../../../gdb/doc/gdb.texinfo:21933: warning: unlikely character ] in @var.
../../../gdb/doc/gdb.texinfo:21936: warning: unlikely character [ in @var.
../../../gdb/doc/gdb.texinfo:21936: warning: unlikely character ] in @var.
../../../gdb/doc/gdb.texinfo:21939: warning: unlikely character [ in @var.
../../../gdb/doc/gdb.texinfo:21939: warning: unlikely character ] in @var.
../../../gdb/doc//python.texi:3297: warning: `.' or `,' must follow
@xref, not `A'.
make[4]: Leaving directory '/home/tester/gdb-9.1/build/gdb/doc'
-----------------
These are thrown by expressions like `@var{[host]}`, intended to
produce `[HOST]`.
In that context this should instead be changed to `[@var{host}]`, which
has the same effect but without the warnings.
As for the warning in `python.texi`, there's period missing at the end
of one `@xref{}` clause. Added.
gdb/doc/ChangeLog:
2020-04-15 Artur Shepilko <nomadbyte@gmail.com>
* gdb.texinfo: Transform @var{[host]} to [@var{host}]; this
clears makeinfo warnings.
* python.texi: Add a missing period trailing an @xref{} clause;
this clears a makeinfo warning.
-rw-r--r-- | gdb/doc/ChangeLog | 7 | ||||
-rw-r--r-- | gdb/doc/gdb.texinfo | 20 | ||||
-rw-r--r-- | gdb/doc/python.texi | 2 |
3 files changed, 18 insertions, 11 deletions
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog index 2be283f..0dc6476 100644 --- a/gdb/doc/ChangeLog +++ b/gdb/doc/ChangeLog @@ -1,3 +1,10 @@ +2020-04-15 Artur Shepilko <nomadbyte@gmail.com> + + * gdb.texinfo: Transform @var{[host]} to [@var{host}]; this + clears makeinfo warnings. + * python.texi: Add a missing period trailing an @xref{} clause; + this clears a makeinfo warning. + 2020-03-06 Tom de Vries <tdevries@suse.de> * gdb.texinfo: Fix "the the". diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index 385c832..239c078 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -21952,19 +21952,19 @@ This feature is not available if the host system does not support Unix domain sockets. @item target remote @code{@var{host}:@var{port}} -@itemx target remote @code{@var{[host]}:@var{port}} +@itemx target remote @code{[@var{host}]:@var{port}} @itemx target remote @code{tcp:@var{host}:@var{port}} -@itemx target remote @code{tcp:@var{[host]}:@var{port}} +@itemx target remote @code{tcp:[@var{host}]:@var{port}} @itemx target remote @code{tcp4:@var{host}:@var{port}} @itemx target remote @code{tcp6:@var{host}:@var{port}} -@itemx target remote @code{tcp6:@var{[host]}:@var{port}} +@itemx target remote @code{tcp6:[@var{host}]:@var{port}} @itemx target extended-remote @code{@var{host}:@var{port}} -@itemx target extended-remote @code{@var{[host]}:@var{port}} +@itemx target extended-remote @code{[@var{host}]:@var{port}} @itemx target extended-remote @code{tcp:@var{host}:@var{port}} -@itemx target extended-remote @code{tcp:@var{[host]}:@var{port}} +@itemx target extended-remote @code{tcp:[@var{host}]:@var{port}} @itemx target extended-remote @code{tcp4:@var{host}:@var{port}} @itemx target extended-remote @code{tcp6:@var{host}:@var{port}} -@itemx target extended-remote @code{tcp6:@var{[host]}:@var{port}} +@itemx target extended-remote @code{tcp6:[@var{host}]:@var{port}} @cindex @acronym{TCP} port, @code{target remote} Debug using a @acronym{TCP} connection to @var{port} on @var{host}. The @var{host} may be either a host name, a numeric @acronym{IPv4} @@ -22016,15 +22016,15 @@ target remote :1234 Note that the colon is still required here. @item target remote @code{udp:@var{host}:@var{port}} -@itemx target remote @code{udp:@var{[host]}:@var{port}} +@itemx target remote @code{udp:[@var{host}]:@var{port}} @itemx target remote @code{udp4:@var{host}:@var{port}} -@itemx target remote @code{udp6:@var{[host]}:@var{port}} +@itemx target remote @code{udp6:[@var{host}]:@var{port}} @itemx target extended-remote @code{udp:@var{host}:@var{port}} @itemx target extended-remote @code{udp:@var{host}:@var{port}} -@itemx target extended-remote @code{udp:@var{[host]}:@var{port}} +@itemx target extended-remote @code{udp:[@var{host}]:@var{port}} @itemx target extended-remote @code{udp4:@var{host}:@var{port}} @itemx target extended-remote @code{udp6:@var{host}:@var{port}} -@itemx target extended-remote @code{udp6:@var{[host]}:@var{port}} +@itemx target extended-remote @code{udp6:[@var{host}]:@var{port}} @cindex @acronym{UDP} port, @code{target remote} Debug using @acronym{UDP} packets to @var{port} on @var{host}. For example, to connect to @acronym{UDP} port 2828 on a terminal server named @code{manyfarms}: diff --git a/gdb/doc/python.texi b/gdb/doc/python.texi index 76cdf7f..31e8995 100644 --- a/gdb/doc/python.texi +++ b/gdb/doc/python.texi @@ -3295,7 +3295,7 @@ is no selected thread, this will return @code{None}. @end defun To get the list of threads for an inferior, use the @code{Inferior.threads()} -method. @xref{Inferiors In Python} +method. @xref{Inferiors In Python}. A @code{gdb.InferiorThread} object has the following attributes: |