gdb/doc: Consistency fixes for GDB/MI documentation

I noticed two inconsistencies in the GDB/MI documentation, which this
commit addresses:

  1. Each MI command is introduced like this:

     @subheading The @code{-command-name} Command

     Except for a few of the tracing command, which just use:

     @subheading -command-name

     In this commit I've updated all these trace commands to use the
     more common format.

  2. Each MI command starts with a @subheading, and then the details
     of that command are split up using multiple @subsubheading
     entries.

     Except for a few commands which use @subheading for the top-level
     command, and then continue to use @subheading for each part of
     the command description.

     In this commit I've updated these to use @subsubheading where
     appropriate.
This commit is contained in:
Andrew Burgess
2023-02-16 09:22:43 +00:00
parent c9802aca6d
commit a5b6347b66

View File

@ -35930,7 +35930,7 @@ frame. This field is present only if a trace frame was found.
The corresponding @value{GDBN} command is @samp{tfind}. The corresponding @value{GDBN} command is @samp{tfind}.
@findex -trace-define-variable @findex -trace-define-variable
@subheading -trace-define-variable @subheading The @code{-trace-define-variable} Command
@subsubheading Synopsis @subsubheading Synopsis
@ -36065,7 +36065,7 @@ There is no corresponding @value{GDBN} command.
@subsubheading Example @subsubheading Example
@findex -trace-list-variables @findex -trace-list-variables
@subheading -trace-list-variables @subheading The @code{-trace-list-variables} Command
@subsubheading Synopsis @subsubheading Synopsis
@ -36111,7 +36111,7 @@ body=[variable=@{name="$trace_timestamp",initial="0"@}
@end smallexample @end smallexample
@findex -trace-save @findex -trace-save
@subheading -trace-save @subheading The @code{-trace-save} Command
@subsubheading Synopsis @subsubheading Synopsis
@ -36134,7 +36134,7 @@ The corresponding @value{GDBN} command is @samp{tsave}.
@findex -trace-start @findex -trace-start
@subheading -trace-start @subheading The @code{-trace-start} Command
@subsubheading Synopsis @subsubheading Synopsis
@ -36150,7 +36150,7 @@ have any fields.
The corresponding @value{GDBN} command is @samp{tstart}. The corresponding @value{GDBN} command is @samp{tstart}.
@findex -trace-status @findex -trace-status
@subheading -trace-status @subheading The @code{-trace-status} Command
@subsubheading Synopsis @subsubheading Synopsis
@ -36225,7 +36225,7 @@ optional, and only present when examining a trace file.
The corresponding @value{GDBN} command is @samp{tstatus}. The corresponding @value{GDBN} command is @samp{tstatus}.
@findex -trace-stop @findex -trace-stop
@subheading -trace-stop @subheading The @code{-trace-stop} Command
@subsubheading Synopsis @subsubheading Synopsis
@ -38114,7 +38114,7 @@ default shows this information when you start an interactive session.
@findex -list-thread-groups @findex -list-thread-groups
@subheading The @code{-list-thread-groups} Command @subheading The @code{-list-thread-groups} Command
@subheading Synopsis @subsubheading Synopsis
@smallexample @smallexample
-list-thread-groups [ --available ] [ --recurse 1 ] [ @var{group} ... ] -list-thread-groups [ --available ] [ --recurse 1 ] [ @var{group} ... ]
@ -38208,7 +38208,7 @@ and only if there is a corresponding executable file.
@end table @end table
@subheading Example @subsubheading Example
@smallexample @smallexample
(@value{GDBP}) (@value{GDBP})
@ -38310,7 +38310,7 @@ popup menu, but is needless clutter on the command line, and
@findex -add-inferior @findex -add-inferior
@subheading The @code{-add-inferior} Command @subheading The @code{-add-inferior} Command
@subheading Synopsis @subsubheading Synopsis
@smallexample @smallexample
-add-inferior [ --no-connection ] -add-inferior [ --no-connection ]
@ -38348,12 +38348,12 @@ The number of the connection used for the new inferior.
The name of the connection type used for the new inferior. The name of the connection type used for the new inferior.
@end table @end table
@subheading @value{GDBN} Command @subsubheading @value{GDBN} Command
The corresponding @value{GDBN} command is @samp{add-inferior} The corresponding @value{GDBN} command is @samp{add-inferior}
(@pxref{add_inferior_cli,,@samp{add-inferior}}). (@pxref{add_inferior_cli,,@samp{add-inferior}}).
@subheading Example @subsubheading Example
@smallexample @smallexample
(@value{GDBP}) (@value{GDBP})
@ -38397,7 +38397,7 @@ The corresponding @value{GDBN} command is @samp{remove-inferiors}
@findex -interpreter-exec @findex -interpreter-exec
@subheading The @code{-interpreter-exec} Command @subheading The @code{-interpreter-exec} Command
@subheading Synopsis @subsubheading Synopsis
@smallexample @smallexample
-interpreter-exec @var{interpreter} @var{command} -interpreter-exec @var{interpreter} @var{command}
@ -38406,11 +38406,11 @@ The corresponding @value{GDBN} command is @samp{remove-inferiors}
Execute the specified @var{command} in the given @var{interpreter}. Execute the specified @var{command} in the given @var{interpreter}.
@subheading @value{GDBN} Command @subsubheading @value{GDBN} Command
The corresponding @value{GDBN} command is @samp{interpreter-exec}. The corresponding @value{GDBN} command is @samp{interpreter-exec}.
@subheading Example @subsubheading Example
@smallexample @smallexample
(gdb) (gdb)
@ -38425,7 +38425,7 @@ The corresponding @value{GDBN} command is @samp{interpreter-exec}.
@findex -inferior-tty-set @findex -inferior-tty-set
@subheading The @code{-inferior-tty-set} Command @subheading The @code{-inferior-tty-set} Command
@subheading Synopsis @subsubheading Synopsis
@smallexample @smallexample
-inferior-tty-set /dev/pts/1 -inferior-tty-set /dev/pts/1
@ -38433,11 +38433,11 @@ The corresponding @value{GDBN} command is @samp{interpreter-exec}.
Set terminal for future runs of the program being debugged. Set terminal for future runs of the program being debugged.
@subheading @value{GDBN} Command @subsubheading @value{GDBN} Command
The corresponding @value{GDBN} command is @samp{set inferior-tty} /dev/pts/1. The corresponding @value{GDBN} command is @samp{set inferior-tty} /dev/pts/1.
@subheading Example @subsubheading Example
@smallexample @smallexample
(gdb) (gdb)
@ -38449,7 +38449,7 @@ The corresponding @value{GDBN} command is @samp{set inferior-tty} /dev/pts/1.
@findex -inferior-tty-show @findex -inferior-tty-show
@subheading The @code{-inferior-tty-show} Command @subheading The @code{-inferior-tty-show} Command
@subheading Synopsis @subsubheading Synopsis
@smallexample @smallexample
-inferior-tty-show -inferior-tty-show
@ -38457,11 +38457,11 @@ The corresponding @value{GDBN} command is @samp{set inferior-tty} /dev/pts/1.
Show terminal for future runs of program being debugged. Show terminal for future runs of program being debugged.
@subheading @value{GDBN} Command @subsubheading @value{GDBN} Command
The corresponding @value{GDBN} command is @samp{show inferior-tty}. The corresponding @value{GDBN} command is @samp{show inferior-tty}.
@subheading Example @subsubheading Example
@smallexample @smallexample
(gdb) (gdb)
@ -38476,7 +38476,7 @@ The corresponding @value{GDBN} command is @samp{show inferior-tty}.
@findex -enable-timings @findex -enable-timings
@subheading The @code{-enable-timings} Command @subheading The @code{-enable-timings} Command
@subheading Synopsis @subsubheading Synopsis
@smallexample @smallexample
-enable-timings [yes | no] -enable-timings [yes | no]
@ -38487,11 +38487,11 @@ command as a field in its output. This command is to help frontend
developers optimize the performance of their code. No argument is developers optimize the performance of their code. No argument is
equivalent to @samp{yes}. equivalent to @samp{yes}.
@subheading @value{GDBN} Command @subsubheading @value{GDBN} Command
No equivalent. No equivalent.
@subheading Example @subsubheading Example
@smallexample @smallexample
(gdb) (gdb)
@ -38521,7 +38521,7 @@ fullname="/home/nickrob/myprog.c",line="73",arch="i386:x86_64"@}
@findex -complete @findex -complete
@subheading The @code{-complete} Command @subheading The @code{-complete} Command
@subheading Synopsis @subsubheading Synopsis
@smallexample @smallexample
-complete @var{command} -complete @var{command}
@ -38533,7 +38533,7 @@ This command is intended for @sc{gdb/mi} frontends that cannot use two separate
CLI and MI channels --- for example: because of lack of PTYs like on Windows or CLI and MI channels --- for example: because of lack of PTYs like on Windows or
because @value{GDBN} is used remotely via a SSH connection. because @value{GDBN} is used remotely via a SSH connection.
@subheading Result @subsubheading Result
The result consists of two or three fields: The result consists of two or three fields:
@ -38552,11 +38552,11 @@ This field contains @code{1} if number of known completions is above
@end table @end table
@subheading @value{GDBN} Command @subsubheading @value{GDBN} Command
The corresponding @value{GDBN} command is @samp{complete}. The corresponding @value{GDBN} command is @samp{complete}.
@subheading Example @subsubheading Example
@smallexample @smallexample
(gdb) (gdb)