diff options
author | Tom Tromey <tromey@adacore.com> | 2023-05-31 08:26:37 -0600 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2023-05-31 12:00:09 -0600 |
commit | 739f67599a85d7b809c0407765f8a7304f771e63 (patch) | |
tree | bdba17bb596aa33ce3386c0d27da716df49add28 /gdb/doc | |
parent | 20fcd1747993127c648b9a3ad393a6caa3a025ba (diff) | |
download | binutils-739f67599a85d7b809c0407765f8a7304f771e63.zip binutils-739f67599a85d7b809c0407765f8a7304f771e63.tar.gz binutils-739f67599a85d7b809c0407765f8a7304f771e63.tar.bz2 |
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>
Diffstat (limited to 'gdb/doc')
-rw-r--r-- | gdb/doc/gdb.texinfo | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index a179af7..fc55c4e 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -32328,11 +32328,16 @@ times="0"@}]@} @smallexample -dprintf-insert [ -t ] [ -f ] [ -d ] [ --qualified ] [ -c @var{condition} ] [--force-condition] [ -i @var{ignore-count} ] - [ -p @var{thread-id} ] [ @var{locspec} ] [ @var{format} ] - [ @var{argument} ] + [ -p @var{thread-id} ] [ @var{locspec} ] @var{format} + [ @var{argument}@dots{} ] @end smallexample @noindent +Insert a new dynamic print breakpoint at the given location. +@xref{Dynamic Printf}. @var{format} is the format to use, and any +remaining arguments are passed as expressions to substitute. + +@noindent If supplied, @var{locspec} and @code{--qualified} may be specified the same way as for the @code{-break-insert} command. @xref{-break-insert}. |