Improve MI -dprintf-insert documentation
authorTom Tromey <tromey@adacore.com>
Wed, 31 May 2023 14:26:37 +0000 (08:26 -0600)
committerTom Tromey <tromey@adacore.com>
Wed, 31 May 2023 18:00:09 +0000 (12:00 -0600)
commit739f67599a85d7b809c0407765f8a7304f771e63
treebdba17bb596aa33ce3386c0d27da716df49add28
parent20fcd1747993127c648b9a3ad393a6caa3a025ba
Improve MI -dprintf-insert documentation

I found the documentation for -dprintf-insert a bit unclear.  It
didn't mention the possibility of multiple arguments, and I also
noticed that it implied that the format parameter is optional, which
it is not.

While looking into this I also noticed a few comments in the
implementation that could also be improved.

Then, I noticed a repeated call to strlen in a loop condition, so I
fixed this up as well.

Reviewed-By: Eli Zaretskii <eliz@gnu.org>
gdb/doc/gdb.texinfo
gdb/mi/mi-cmd-break.c