This is the mail archive of the gdb-patches@sourceware.cygnus.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: GDB 5 2000-03-29



> Date: Sun, 02 Apr 2000 10:29:19 +1000
> From: Andrew Cagney <ac131313@cygnus.com>
> 
> Eli Zaretskii wrote:
> > 
> 
> > > +MI documentation in GDB user guide. (Andrew Cagney, Elena Zannoni,
> > > +Stan Shebs, anyone else?)
> > > +
> > > +> (Are there plans to make gdbmi.texi be part of the manual as well?)
> 
> Please do!

I did it.  The patches I suggest are attached below.  They are very
long, I'm afraid (it looks like nobody has ever run makeinfo on
gdbmi.texinfo ;-).

Please see if this is good enough for GDB 5.0.  If nodbody objects, I
will commit this.

2000-04-15  Eli Zaretskii  <eliz@is.elta.co.il>

	* TODO, NEWS: Update due to inclusion of gdbmi.texinfo in the GDB
	manual.

--- gdb/NEWS.~1	Sat Apr 15 11:42:36 2000
+++ gdb/NEWS	Sat Apr 15 22:10:28 2000
@@ -122,9 +122,9 @@
 
 A new machine oriented interface (MI) has been added to GDB.  This
 interface is designed for debug environments running GDB as a separate
-process.  This is part of the long term libGDB project.  See
-gdb/mi/gdbmi.texinfo for further information.  It can be enabled by
-configuring with:
+process.  This is part of the long term libGDB project.  See the
+"GDB/MI" chapter of the GDB manual for further information.  It can be
+enabled by configuring with:
 
 	.../configure --enable-gdbmi
 
--- gdb/TODO.~0	Sat Apr 15 11:40:02 2000
+++ gdb/TODO	Sat Apr 15 22:11:26 2000
@@ -144,24 +144,6 @@
 
 --
 
-MI documentation in GDB user guide. (Andrew Cagney, Elena Zannoni,
-Stan Shebs, anyone else?)
-
-> (Are there plans to make gdbmi.texi be part of the manual as well?)
-
-I'd like to see it go in there sooner rather than later too.  Otherwise
-you're introducing discrepancies between the manual and the documentation,
-and everybody is confused - witness the lack of doc for the tracing
-commands still, some two years after they were added...
-
-Discussion on MI can be found on the thread: [PATCH] GDB command-line
-switches and annotations docs
-http://sourceware.cygnus.com/ml/gdb-patches/2000-q1/msg00639.html
-
-MI documentation can be found in the file gdb/mi/gdbmi.texinfo
-
---
-
 Revised UDP support (was: Re: [Fwd: [patch] UDP transport support])
 http://sourceware.cygnus.com/ml/gdb-patches/2000-04/msg00000.html
 

2000-04-15  Eli Zaretskii  <eliz@is.elta.co.il>

	* gdb.texinfo (Top): Add GDB/MI to the main menu and @include
	gdbmi.texinfo.

--- gdb/doc/gdb.t~3	Sat Apr 15 12:06:26 2000
+++ gdb/doc/gdb.texinfo	Sat Apr 15 21:31:46 2000
@@ -142,6 +142,7 @@
 * Sequences::                   Canned sequences of commands
 * Emacs::                       Using @value{GDBN} under @sc{gnu} Emacs
 * Annotations::                 @value{GDBN}'s annotation interface.
+* GDB/MI::                      @value{GDBN}'s Machine Interface.
 
 * GDB Bugs::                    Reporting bugs in @value{GDBN}
 * Formatting Documentation::    How to format and print @value{GDBN} documentation
@@ -12207,6 +12208,7 @@
 @end ignore
 
 @include annotate.texi
+@include ../mi/gdbmi.texinfo
 
 @node GDB Bugs
 @chapter Reporting Bugs in @value{GDBN}

2000-04-15  Eli Zaretskii  <eliz@is.elta.co.il>

	* gdbmi.texinfo: Lots of changes, to include this document as part
	of the GDB manual.

--- gdb/mi/gdbmi.t~0	Fri Mar 10 10:07:22 2000
+++ gdb/mi/gdbmi.texinfo	Sat Apr 15 21:56:56 2000
@@ -1,293 +1,366 @@
-\input texinfo   @c -*-texinfo-*-
-@c %**start of header
-@setfilename gdbmi.info
-@settitle GDB/MI Machine Interface
-@setchapternewpage off
-@c %**end of header
-
-@ifinfo
-This file documents GDB/MI, a Machine Interface to GDB.
-
-Copyright (C) 2000, Free Software Foundation, Inc.
-Contributed by Cygnus Solutions.
-
-Permission is granted to make and distribute verbatim copies of this
-manual provided the copyright notice and this permission notice are
-preserved on all copies.
+@c  \input texinfo   @c -*-texinfo-*-
+@c  @c %**start of header
+@c  @setfilename gdbmi.info
+@c  @settitle GDB/MI Machine Interface
+@c  @setchapternewpage off
+@c  @c %**end of header
+
+@c  @ifinfo
+@c  This file documents GDB/MI, a Machine Interface to GDB.
+
+@c  Copyright (C) 2000, Free Software Foundation, Inc.
+@c  Contributed by Cygnus Solutions.
+
+@c  Permission is granted to make and distribute verbatim copies of this
+@c  manual provided the copyright notice and this permission notice are
+@c  preserved on all copies.
+
+@c  @ignore
+@c  Permission is granted to process this file through TeX and print the
+@c  results, provided the printed document carries copying permission notice
+@c  identical to this one except for the removal of this paragraph (this
+@c  paragraph not being relevant to the printed manual).
+
+@c  @end ignore
+@c  Permission is granted to copy and distribute modified versions of this
+@c  manual under the conditions for verbatim copying, provided also that the
+@c  entire resulting derived work is distributed under the terms of a
+@c  permission notice identical to this one.
+
+@c  Permission is granted to copy and distribute translations of this manual
+@c  into another language, under the above conditions for modified versions.
+@c  @end ifinfo
+
+@c  @c  This title page illustrates only one of the
+@c  @c  two methods of forming a title page.
+
+@c  @titlepage
+@c  @title GDB/MI
+@c  @subtitle Version 0.2
+@c  @subtitle Feb 2000
+@c  @author Andrew Cagney, Fernando Nasser and Elena Zannoni
+
+@c  @c  The following two commands
+@c  @c  start the copyright page.
+@c  @page
+@c  @vskip 0pt plus 1filll
+@c  Permission is granted to make and distribute verbatim copies of this
+@c  manual provided the copyright notice and this permission notice are
+@c  preserved on all copies.
 
-@ignore
-Permission is granted to process this file through TeX and print the
-results, provided the printed document carries copying permission notice
-identical to this one except for the removal of this paragraph (this
-paragraph not being relevant to the printed manual).
-
-@end ignore
-Permission is granted to copy and distribute modified versions of this
-manual under the conditions for verbatim copying, provided also that the
-entire resulting derived work is distributed under the terms of a
-permission notice identical to this one.
-
-Permission is granted to copy and distribute translations of this manual
-into another language, under the above conditions for modified versions.
-@end ifinfo
-
-@c  This title page illustrates only one of the
-@c  two methods of forming a title page.
-
-@titlepage
-@title GDB/MI
-@subtitle Version 0.2
-@subtitle Feb 2000
-@author Andrew Cagney, Fernando Nasser and Elena Zannoni
-
-@c  The following two commands
-@c  start the copyright page.
-@page
-@vskip 0pt plus 1filll
-Permission is granted to make and distribute verbatim copies of this
-manual provided the copyright notice and this permission notice are
-preserved on all copies.
-
-Copyright @copyright{} 2000, Free Software Foundation, Inc.
-@end titlepage
+@c  Copyright @copyright{} 2000, Free Software Foundation, Inc.
+@c  @end titlepage
 
 @c %%%%%%%%%%%%%%%%%%%%%%%%%%%% CHAPTER %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-@chapter Overview
+@node GDB/MI
+@chapter The @sc{gdb/mi} Interface
 
-@heading Function and Purpose
+@unnumberedsec Function and Purpose
 
-GDB/MI is a line based machine oriented text interface to GDB.  It is
+@cindex @sc{gdb/mi}, its purpose
+@sc{gdb/mi} is a line based machine oriented text interface to GDB.  It is
 specifically intended to support the development of systems which use
 the debugger as just one small component of a larger system.
 
-@heading This Document
-
-This document is a specification of the GDB/MI interface.  It is written
+This chapter is a specification of the @sc{gdb/mi} interface.  It is written
 in the form of a reference manual.
 
-@heading Terminology
+Note that @sc{gdb/mi} is still under construction, so some of the
+features described below are incomplete and subject to change.
+
+@unnumberedsec Notation and Terminology
+
+@cindex notational conventions, for @sc{gdb/mi}
+This chapter uses the following notation:
+
+@itemize @bullet
+@item
+@code{|} separates two alternatives.
+
+@item
+@code{[ @var{something} ]} indicates that @var{something} is optional:
+it may or may not be given.
+
+@item
+@code{( @var{group} )*} means that @var{group} inside the parentheses
+may repeat zero or more times.
+
+@item
+@code{( @var{group} )+} means that @var{group} inside the parentheses
+may repeat one or more times.
+
+@item
+@code{"@var{string}"} means a literal @var{string}.
+@end itemize
 
+@ignore
 @heading Dependencies
+@end ignore
 
 @heading Acknowledgments
 
-In alphabetic order: Fernando Nasser, Stan Shebs and Elena Zannoni.
+In alphabetic order: Andrew Cagney, Fernando Nasser, Stan Shebs and
+Elena Zannoni.
 
-@c %%%%%%%%%%%%%%%%%%%%%%%%%%%% CHAPTER %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-@chapter Command Syntax
+@menu
+* GDB/MI Command Syntax::
+* GDB/MI and CLI::
+* GDB/MI Output Records::
+* GDB/MI Command Description Format::
+* GDB/MI Breakpoint Table Commands::
+* GDB/MI Data Manipulation::
+* GDB/MI Program Control::
+* GDB/MI Misc Commands::
+@ignore
+* GDB/MI Kod Commands::
+@end ignore
+* GDB/MI Stack Manipulation::
+* GDB/MI Symbol Query::
+* GDB/MI Target Manipulation::
+* GDB/MI Thread Commands::
+* GDB/MI Tracepoint Commands::
+* GDB/MI Variable Objects::
+@end menu
+
+@c %%%%%%%%%%%%%%%%%%%%%%%%%%%% SECTION %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+@node GDB/MI Command Syntax
+@section @sc{gdb/mi} Command Syntax
 
-@section Input Syntax
+@subsection @sc{gdb/mi} Input Syntax
 
+@cindex input syntax for @sc{gdb/mi}
+@cindex @sc{gdb/mi}, input syntax
 @table @code
+@item @var{command} @expansion{}
+@code{@var{cli-command} | @var{mi-command}}
 
-@item <command> @expansion{} 
-<cli-command> | <mi-command>
+@item @var{cli-command} @expansion{}
+@code{[ @var{token} ] @var{cli-command} @var{nl}}, where
+@var{cli-command} is any existing GDB CLI command.
 
-@item <cli-command> @expansion{}
-[ <token> ] "any existing GDB CLI command" <nl>
+@item @var{mi-command} @expansion{}
+@code{[ @var{token} ] "-" @var{operation} ( " " @var{option} )*
+@code{[} " --" @code{]} ( " " @var{parameter} )* @var{nl}}
 
-@item <mi-command> @expansion{}
-[ <token> ] ``-'' <operation> ( `` '' <option> )* [ `` --'' ] ( `` '' <parameter> )* <nl> 
+@item @var{token} @expansion{}
+@code{"any sequence of digits"}
 
-@item <token> @expansion{}
-``any sequence of digits''
+@item @var{option} @expansion{}
+@code{"-" @var{parameter} [ " " @var{parameter} ]}
 
-@item <option> @expansion{}
-``-'' <parameter> [ `` '' <parameter> ]
+@item @var{parameter} @expansion{}
+@code{@var{non-blank-sequence} | @var{c-string}}
 
-@item <parameter> @expansion{}
-<non-blank-sequence> | <c-string>
+@item @var{operation} @expansion{}
+@emph{any of the operations described in this document}
 
-@item <operation> @expansion{}
-any of the operations described in this document.
+@item @var{non-blank-sequence} @expansion{}
+@emph{anything, provided it doesn't contain special characters such as
+"-", @var{nl}, """ and of course " "}
 
-@item <non-blank-sequence> @expansion{}
-anything provided it doesn't contain special characters such as ``-''
- <nl>, ``"'' and of course `` ''.
-
-@item <c-string> @expansion{}
-``"'' <seven-bit-iso-c-string-content> ``"''
-
-@item <nl> @expansion{}
-CR | CR-LF
+@item @var{c-string} @expansion{}
+@code{""" @var{seven-bit-iso-c-string-content} """}
 
+@item @var{nl} @expansion{}
+@code{CR | CR-LF}
 @end table
 
 Notes:
 
 @itemize @bullet
-
 @item
-The CLI commands are still handled by the MI interpreter; their output
-is described below
+The CLI commands are still handled by the @sc{mi} interpreter; their
+output is described below.
 
 @item
-The @code{<token>}, when present, is passed back when the command
+The @code{@var{token}}, when present, is passed back when the command
 finishes.
 
 @item
-Some mi commands accept optional arguments as part of the parameter
-list. Each option is identified by a leading @code{-} (dash) and may be
-followed by an option argument parameter.  Options occure first in the
-parameter list and can be delimiated from normal parameters using
-@code{--}.
-
+Some @sc{mi} commands accept optional arguments as part of the parameter
+list. Each option is identified by a leading @samp{-} (dash) and may be
+followed by an optional argument parameter.  Options occur first in the
+parameter list and can be delimited from normal parameters using
+@samp{--} (this is useful when some parameters begin with a dash).
 @end itemize
 
 Pragmatics:
 
 @itemize @bullet
-
 @item
 We want easy access to the existing CLI syntax (for debugging).
 
 @item
-We want it easy to spot a MI operation
-
+We want it to be easy to spot a @sc{mi} operation.
 @end itemize
 
-@section Output Syntax
-
-The output from GDB/MI consists of zero or more out-of-band records
+@menu
+* GDB/MI Output Syntax::
+* GDB/MI Simple Examples::
+@end menu
+
+@node GDB/MI Output Syntax
+@subsection @sc{gdb/mi} Output Syntax
+
+@cindex output syntax of @sc{gdb/mi}
+@cindex @sc{gdb/mi}, output syntax
+The output from @sc{gdb/mi} consists of zero or more out-of-band records
 followed, optionally, by a single result record.  The result record
 being for the most recent command.  The sequence of output records is
-terminated by ``(gdb)''.
+terminated by @samp{(gdb)}.
 
-If an input command was prefixed with a @code{<token>} then the
+If an input command was prefixed with a @code{@var{token}} then the
 corresponding output for that command will also be prefixed by that same
-token.
+@var{token}.
 
 @table @code
-@item <output> @expansion{}
-( <out-of-band-record> )* [ <result-record> ] ``(gdb)'' <nl> 
-
-@item <result-record> @expansion{}
-[ <token> ] ``^'' <result-class> ( ``,'' <result> )* <nl>
+@item @var{output} @expansion{}
+@code{( @var{out-of-band-record} )* [ @var{result-record} ] "(gdb)" @var{nl}}
 
-@item <out-of-band-record> @expansion{}
-<async-record> | <stream-record>
+@item @var{result-record} @expansion{}
+@code{ [ @var{token} ] "^" @var{result-class} ( "," @var{result} )* @var{nl}}
 
-@item <async-record> @expansion{}
-<exec-async-output> | <status-async-output> | <notify-async-output>
+@item @var{out-of-band-record} @expansion{}
+@code{@var{async-record} | @var{stream-record}}
 
-@item <exec-async-output> @expansion{}
-[ <token> ] ``*'' <async-output>
+@item @var{async-record} @expansion{}
+@code{@var{exec-async-output} | @var{status-async-output} | @var{notify-async-output}}
 
-@item <status-async-output> @expansion{}
-[ <token> ] ``+'' <async-output>
+@item @var{exec-async-output} @expansion{}
+@code{[ @var{token} ] "*" @var{async-output}}
 
-@item <notify-async-output> @expansion{}
-[ <token> ] ``='' <async-output>
+@item @var{status-async-output} @expansion{}
+@code{[ @var{token} ] "+" @var{async-output}}
 
-@item <async-output> @expansion{}
-<async-class> ( ``,'' <result> )* <nl> 
+@item @var{notify-async-output} @expansion{}
+@code{[ @var{token} ] "=" @var{async-output}}
 
-@item <result-class> @expansion{} 
-``done'' | ``running'' | ``connected'' | ``error'' | ``exit''
+@item @var{async-output} @expansion{}
+@code{@var{async-class} ( "," @var{result} )* @var{nl}}
 
-@item <async-class> @expansion{} 
-``stopped'' | others (depending on needs, still in development)
+@item @var{result-class} @expansion{}
+@code{"done" | "running" | "connected" | "error" | "exit"}
 
-@item <result> @expansion{}
-[ <string> ``='' ] <value>
+@item @var{async-class} @expansion{}
+@code{"stopped" | @var{others}} (where @var{others} will be added
+depending on the needs---this is still in development).
 
-@item <value> @expansion{}
-<const> | ``@{'' <result> ( ``,'' <result> )* ``@}''
+@item @var{result} @expansion{}
+@code{[ @var{string} "=" ] @var{value}}
 
-@item <const> @expansion{}
-<c-string>
+@item @var{value} @expansion{}
+@code{@var{const} | "@{" @var{result} ( "," @var{result} )* "@}"}
 
-@item <stream-record> @expansion{}
-<console-stream-output> | <target-stream-output> | <log-stream-output>
+@item @var{const} @expansion{}
+@code{@var{c-string}}
 
-@item <console-stream-output> @expansion{}
-``~'' <c-string>
+@item @var{stream-record} @expansion{}
+@code{@var{console-stream-output} | @var{target-stream-output} | @var{log-stream-output}}
 
-@item <target-stream-output> @expansion{}
-``@@'' <c-string>
+@item @var{console-stream-output} @expansion{}
+@code{"~" @var{c-string}}
 
-@item <log-stream-output> @expansion{}
-``&'' <c-string>
+@item @var{target-stream-output} @expansion{}
+@code{"@@" @var{c-string}}
 
-@item <nl> @expansion{}
-CR | CR-LF
+@item @var{log-stream-output} @expansion{}
+@code{"&" @var{c-string}}
 
-@item <token> @expansion{}
-``any sequence of digits''
+@item @var{nl} @expansion{}
+@code{CR | CR-LF}
 
+@item @var{token} @expansion{}
+@emph{any sequence of digits}.
 @end table
 
-In addition, the following are still being developed.
+In addition, the following are still being developed:
 
 @table @code
-
-@item <query>
+@item @var{query}
 This action is currently undefined.
-
 @end table
 
 Notes:
 
 @itemize @bullet
-
 @item
 All output sequences end in a single line containing a period.
 
 @item
-The @code{<token>} is from the corresponding request.  If an execution
-command is interrupted by the -exec-interrupt command, the token
-associated with the `*stopped' message is the one of the original
-execution command, not the one of the interrupt-command.
+The @code{@var{token}} is from the corresponding request.  If an execution
+command is interrupted by the @samp{-exec-interrupt} command, the
+@var{token} associated with the `*stopped' message is the one of the
+original execution command, not the one of the interrupt-command.
 
 @item
-<status-async-output> contains on-going status information about the progress
-of a slow operation.  It can be discarded. All status output is prefixed by
-the prefix `+'.
+@cindex status output in @sc{gdb/mi}
+@var{status-async-output} contains on-going status information about the
+progress of a slow operation.  It can be discarded.  All status output is
+prefixed by @samp{+}.
 
 @item
-<exec-async-output> contains asynchronous state change on the target
-(stopped, started, disappeared). All async output is prefixed by
-the prefix `*'.
+@cindex async output in @sc{gdb/mi}
+@var{exec-async-output} contains asynchronous state change on the target
+(stopped, started, disappeared).  All async output is prefixed by
+@samp{*}.
 
 @item
-<notify-async-output> contains supplementary information that the client should
-handle (new breakpoint information). All notify output is prefixed by
-the prefix `='.
+@cindex notify output in @sc{gdb/mi}
+@var{notify-async-output} contains supplementary information that the
+client should handle (e.g., a new breakpoint information).  All notify
+output is prefixed by @samp{=}.
 
 @item
-<console-stream-output> is output that should be displayed as is in the
-console.  It is the textual response to a CLI command. All the console
-output is prefixed by the prefix ``~''.
+@cindex console output in @sc{gdb/mi}
+@var{console-stream-output} is output that should be displayed as is in the
+console.  It is the textual response to a CLI command.  All the console
+output is prefixed by @samp{~}.
 
 @item
-<target-stream-output> is the output produced by the target program.
-All the target output is prefixed by the prefix ``@@''.
+@cindex target output in @sc{gdb/mi}
+@var{target-stream-output} is the output produced by the target program.
+All the target output is prefixed by @samp{@@}.
 
 @item
-<log-stream-output> is output text coming from GDB's internals, for
+@cindex log output in @sc{gdb/mi}
+@var{log-stream-output} is output text coming from GDB's internals, for
 instance messages that should be displayed as part of an error log.  All
-the log output is prefixed by the prefix ``&''.
-
+the log output is prefixed by @samp{&}.
 @end itemize
 
-@section Simple Examples
+@xref{GDB/MI Stream Records, , @sc{gdb/mi} Stream Records}, for more
+details about the various output records.
+
+@node GDB/MI Simple Examples
+@subsection Simple Examples of @sc{gdb/mi} Interaction
+@cindex @sc{gdb/mi}, simple examples
+
+This subsection presents several simple examples of interaction using
+the @sc{gdb/mi} interface.  In these examples, @samp{->} means that the
+following line is passed to @sc{gdb/mi} as input, while @samp{<-} means
+the output received from @sc{gdb/mi}.
 
-@subheading Target stop:
+@unnumberedsubsubsec Target Stop
+
+Here's an example of stopping the inferior process:
 
 @example
 -> -stop
 <- (gdb)
 @end example
 
-(later)
+@noindent
+and later:
 
 @example
 <- *stop,reason="stop",address="0x123",source="a.c:123"
 <- (gdb)
 @end example
 
+@unnumberedsubsubsec Simple CLI Command
 
-@subheading Simple CLI command being passed through the MI and on to the CLI.
+Here's an example of a simple CLI command being passed through
+@sc{gdb/mi} and on to the CLI.
 
 @example
 -> print 1+2
@@ -295,8 +368,7 @@
 <- (gdb)
 @end example
 
-
-@subheading Command with side effects:
+@unnumberedsubsubsec Command With Side Effects
 
 @example
 -> -symbol-file xyz.exe
@@ -304,8 +376,9 @@
 <- (gdb)
 @end example
 
+@unnumberedsubsubsec A Bad Command
 
-@subheading A bad command:
+Here's what happens if you pass a non-existent command:
 
 @example
 -> -rubbish
@@ -313,229 +386,378 @@
 <- (gdb)
 @end example
 
-@c %%%%%%%%%%%%%%%%%%%%%%%%%%%% CHAPTER %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-@chapter CLI compatibility
-
-To help users familiar with the GDB's existing CLI interface, the GDB/MI
-will accept existing CLI commands.  As specified by the syntax, such
-commands can be directly entered into the MI interface and GDB will
+@c %%%%%%%%%%%%%%%%%%%%%%%%%%%% SECTION %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+@node GDB/MI and CLI
+@section @sc{gdb/mi} Compatibility with CLI
+
+@cindex compatibility, @sc{gdb/mi} and CLI
+@cindex @sc{gdb/mi}, compatibility with CLI
+To help users familiar with the GDB's existing CLI interface, @sc{gdb/mi}
+accepts existing CLI commands.  As specified by the syntax, such
+commands can be directly entered into the @sc{gdb/mi} interface and GDB will
 respond.
 
-The mechanism is provided as an aid to developers of MI clients and not
-as a reliable interface into the CLI.  Since the command is being
-interpreteted in an environment that assumes MI behaviour the exact
-output of such commands is likely to end up being an un-supported hybrid
-of MI and CLI output.
-
-
-@c %%%%%%%%%%%%%%%%%%%%%%%%%%%% CHAPTER %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-@chapter Output Records
-
-@section Result Records
-
-In addition to a number of out-of-band notifications the response to an
-MI command includes one of the following result indications.
+This mechanism is provided as an aid to developers of @sc{gdb/mi}
+clients and not as a reliable interface into the CLI.  Since the command
+is being interpreteted in an environment that assumes @sc{gdb/mi}
+behaviour, the exact output of such commands is likely to end up being
+an un-supported hybrid of @sc{gdb/mi} and CLI output.
+
+@c %%%%%%%%%%%%%%%%%%%%%%%%%%%% SECTION %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+@node GDB/MI Output Records
+@section @sc{gdb/mi} Output Records
+
+@menu
+* GDB/MI Result Records::
+* GDB/MI Stream Records::
+* GDB/MI Out-of-band Records::
+@end menu
+
+@node GDB/MI Result Records
+@subsection @sc{gdb/mi} Result Records
+
+@cindex result records in @sc{gdb/mi}
+@cindex @sc{gdb/mi}, result records
+In addition to a number of out-of-band notifications, the response to a
+@sc{gdb/mi} command includes one of the following result indications:
 
 @table @code
-
-@item ``^done'' [ ``,'' <results> ]
-The synchronous operation was successful, @code{<results>} is the return
+@findex ^done
+@item "^done" [ "," @var{results} ]
+The synchronous operation was successful, @code{@var{results}} is the return
 value.
 
-@item ``^running''
+@item "^running"
+@findex ^running
+@c Is this one correct?  Should it be an out-of-band notification?
 The asynchronous operation was successfully started.  The target is
-running.  @emph{Is this one correct should it be an out-of-band
-notification?}
+running.
 
-@item ``^error'' ``,'' <c-string>
-The operation failed.  The @code{<c-string>} contains the corresponding
+@item "^error" "," @var{c-string}
+@cindex ^error
+The operation failed.  The @code{@var{c-string}} contains the corresponding
 error message.
-
 @end table
 
-@section Stream Records
+@node GDB/MI Stream Records
+@subsection @sc{gdb/mi} Stream Records
 
+@cindex @sc{gdb/mi}, stream records
+@cindex stream records in @sc{gdb/mi}
 GDB internally maintains a number of output streams: the console, the
 target, and the log.  The output intended for each of these streams is
-tunneled through the MI interface using stream records.
+funneled through the @sc{gdb/mi} interface using @dfn{stream records}.
 
-In addition to the prefix each stream record contains a
-@code{<string-output>}.  This is either raw text (with an implicit new
+Each stream record begins with a unique @dfn{prefix character} which
+identifies its stream (@pxref{GDB/MI Output Syntax, , @sc{gdb/mi} Output
+Syntax}). In addition to the prefix, each stream record contains a
+@code{@var{string-output}}.  This is either raw text (with an implicit new
 line) or a quoted C string (which does not contain an implicit newline).
 
 @table @code
-
-@item ``~'' <string-output>
+@item "~" @var{string-output}
 The console output stream contains text that should be displayed in the
 CLI console window.  It contains the textual responses to CLI commands.
 
-@item ``@@'' <string-output>
+@item "@@" @var{string-output}
 The target output stream contains any textual output from the running
 target.
 
-@item ``&'' <string-output>
+@item "&" @var{string-output}
 The LOG stream contains debugging messages being produced by GDB's
 internals.
-
 @end table
 
-@section Out-of-band Records.
+@node GDB/MI Out-of-band Records
+@subsection @sc{gdb/mi} Out-of-band Records
 
-Out-of-band records are used to notify the MI client of additional
-changes that have occurred.  Those changes can either be a consequence of
-an MI (breakpoint modified) or as a result of target activity (target
-stopped).
+@cindex out-of-band records in @sc{gdb/mi}
+@cindex @sc{gdb/mi}, out-of-band records
+@dfn{Out-of-band} records are used to notify the @sc{gdb/mi} client of
+additional changes that have occurred.  Those changes can either be a
+consequence of @sc{gdb/mi} (e.g., a breakpoint modified) or a result of
+target activity (e.g., target stopped).
 
 The following is a preliminary list of possible out-of-band records.
 
 @table @code
-
-@item ``*'' ``stop''
-
+@item "*" "stop"
 @end table
 
 
-@c %%%%%%%%%%%%%%%%%%%%%%%%%%%% CHAPTER %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-@chapter Command Description Format
+@c %%%%%%%%%%%%%%%%%%%%%%%%%%%% SECTION %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+@node GDB/MI Command Description Format
+@section @sc{gdb/mi} Command Description Format
 
-The remaining chapters describe blocks of commands.  Each block of
+The remaining sections describe blocks of commands.  Each block of
 commands is laid out in a fashion similar to this chapter.
 
 Note the the line breaks shown in the examples are here only for
 readability. They don't appear in the real output.
-Note that the commands with a non available example (N.A.) are not yet
-implemented.
+Also note that the commands with a non-available example (N.A.@:) are
+not yet implemented.
 
-@section Motivation
+@subheading Motivation
 
-What motivates the collection of commands
+The motivation for this collection of commands
 
-@section Introduction
+@subheading Introduction
 
-Brief introduction to the commands as a whole.
+A brief introduction to this collection of commands as a whole.
 
-@section Operations
+@subheading Commands
 
-@subsection -command <args>...
+For each command in the block, the following is described:
 
-@subsubsection Result
+@subsubheading Synopsis
 
-@subsubsection Out-of-band
+@example
+ -command @var{args}...
+@end example
 
-@subsubsection Notes
+@subsubheading GDB Command
 
-@subsubsection Example
+The corresponding GDB CLI command.
 
+@subsubheading Result
 
-@c %%%%%%%%%%%%%%%%%%%%%%%%%%%% CHAPTER %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-@chapter Breakpoint table commands
+@subsubheading Out-of-band
+
+@subsubheading Notes
+
+@subsubheading Example
+
+
+@c %%%%%%%%%%%%%%%%%%%%%%%%%%%% SECTION %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+@node GDB/MI Breakpoint Table Commands
+@section @sc{gdb/mi} Breakpoint table commands
+
+@cindex breakpoint commands for @sc{gdb/mi}
+@cindex @sc{gdb/mi}, breakpoint commands
+This section documents @sc{gdb/mi} commands for manipulating
+breakpoints.
+
+@menu
+* -break-after::
+@ignore
+* -break-catch::
+* -break-commands::
+@end ignore
+* -break-condition::
+* -break-delete::
+* -break-disable::
+* -break-enable::
+* -break-info::
+* -break-insert::
+* -break-list::
+* -break-watch::
+@end menu
 
-@section -break-after <number> <count>
-The breakpoint number <number> is not in effect until it has been hit <count> times.
-Note how this is reflected in the output of the -break-list command.
+@node -break-after
+@subsection The @code{-break-after} Command
+@findex -break-after
 
-@subsection GDB command
-ignore
+@subsubheading Synopsis
 
-@subsection Example
 @example
-(gdb) 
+ -break-after @var{number} @var{count}
+@end example
+
+The breakpoint number @var{number} is not in effect until it has been
+hit @var{count} times.  To see how this is reflected in the output of
+the @samp{-break-list} command, @ref{-break-list, , The
+@code{-break-list} Command}.
+
+@subsubheading GDB Command
+
+The corresponding GDB command is @samp{ignore}.
+
+@subsubheading Example
+
+@smallexample
+(gdb)
 -break-insert main
 ^done,bkpt=@{number="1",addr="0x000100d0",file="hello.c",line="5"@}
-(gdb) 
+(gdb)
 -break-after 1 3
 ~
 ^done
-(gdb) 
+(gdb)
 -break-list
 ^done,BreakpointTable=@{hdr=@{"Num","Type","Disp","Enb","Address","What"@},
 bkpt=@{number="1",type="breakpoint",disp="keep",enabled="y",
 addr="0x000100d0",func="main",file="hello.c",line="5",times="0",ignore="3"@}@}
-(gdb) 
-@end example
+(gdb)
+@end smallexample
+
+@ignore
+@node -break-catch
+@subsection The @code{-break-catch} Command
+@findex -break-catch
+
+@node -break-commands
+@subsection The @code{-break-commands} Command
+@findex -break-commands
+@end ignore
 
-@c @section -break-catch
+@node -break-condition
+@subsection The @code{-break-condition} Command
+@findex -break-condition
 
-@c @section -break-commands
+@subsubheading Synopsis
 
-@section -break-condition <number> <expr>
-Breakpoint <number> will stop the program only if the condition in <expr> is true.
-The condition becomes part of the -break-list output.
-@subsection GDB command
-condition
-@subsection Example
 @example
-(gdb) 
+ -break-condition @var{number} @var{expr}
+@end example
+
+Breakpoint @var{number} will stop the program only if the condition in
+@var{expr} is true.  The condition becomes part of the
+@samp{-break-list} output (@pxref{-break-list}).
+
+@subsubheading GDB Command
+
+The corresponding GDB command is @samp{condition}.
+
+@subsubheading Example
+
+@smallexample
+(gdb)
 -break-condition 1 1
 ^done
-(gdb) 
+(gdb)
 -break-list
 ^done,BreakpointTable=@{hdr=@{"Num","Type","Disp","Enb","Address","What"@},
 bkpt=@{number="1",type="breakpoint",disp="keep",enabled="y",
-addr="0x000100d0",func="main",file="hello.c",line="5",cond="1",times="0",ignore="3"@}@}
-(gdb) 
+addr="0x000100d0",func="main",file="hello.c",line="5",cond="1",times="0",
+ignore="3"@}@}
+(gdb)
+@end smallexample
+
+@node -break-delete
+@subsection The @code{-break-delete} Command
+@findex -break-delete
+
+@subsubheading Synopsis
+
+@example
+ -break-delete ( @var{breakpoint} )+
 @end example
 
-@section -break-delete @{ <breakpoint> @}+
-Delete the breakpoint(s) specified in the argument list. This is
-obviously reflected in the breakpoint list.
-@subsection GDB command
-delete
-@subsection Example
+Delete the breakpoint(s) whose number(s) are specified in the argument
+list. This is obviously reflected in the breakpoint list.
+
+@subsubheading GDB command
+
+The corresponding GDB command is @samp{delete}.
+
+@subsubheading Example
+
 @example
-(gdb) 
--break-delete 1  
+(gdb)
+-break-delete 1
 ^done
-(gdb) 
+(gdb)
 -break-list
 ^done,BreakpointTable=@{@}
-(gdb) 
+(gdb)
 @end example
 
-@section -break-disable @{ <breakpoint> @}+
-Disable the breakpoint(s). Note how the field 'enabled' in the break
-list is now set to 'n'.
-@subsection GDB command
-disable
-@subsection Example
+@node -break-disable
+@subsection The @code{-break-disable} Command
+@findex -break-disable
+
+@subsubheading Synopsis
+
 @example
-(gdb) 
+ -break-disable ( @var{breakpoint} )+
+@end example
+
+Disable the named @var{breakpoint}(s).  The field @samp{enabled} in the
+break list is now set to @samp{n} for the named @var{breakpoint}(s).
+
+@subsubheading GDB Command
+
+The corresponding GDB command is @samp{disable}.
+
+@subsubheading Example
+
+@smallexample
+(gdb)
 -break-disable 2
 ^done
-(gdb) 
+(gdb)
 -break-list
 ^done,BreakpointTable=@{hdr=@{"Num","Type","Disp","Enb","Address","What"@},
 bkpt=@{number="2",type="breakpoint",disp="keep",enabled="n",
 addr="0x000100d0",func="main",file="hello.c",line="5",times="0"@}@}
-(gdb) 
-@end example
+(gdb)
+@end smallexample
+
+@node -break-enable
+@subsection The @code{-break-enable} Command
+@findex -break-enable
+
+@subsubheading Synopsis
 
-@section -break-enable @{ <breakpoint> @}+
-Enable a previously disabled breakpoint(s). 
-@subsection GDB command
-enable
-@subsection Example
 @example
-(gdb) 
-enable 2
+ -break-enable ( @var{breakpoint} )+
+@end example
+
+Enable (previously disabled) @var{breakpoint}(s).
+
+@subsubheading GDB Command
+
+The corresponding GDB command is @samp{enable}.
+
+@subsubheading Example
+
+@smallexample
+(gdb)
+-break-enable 2
 ^done
-(gdb) 
+(gdb)
 -break-list
 ^done,BreakpointTable=@{hdr=@{"Num","Type","Disp","Enb","Address","What"@},
 bkpt=@{number="2",type="breakpoint",disp="keep",enabled="y",
 addr="0x000100d0",func="main",file="hello.c",line="5",times="0"@}@}
-(gdb) 
+(gdb)
+@end smallexample
+
+@node -break-info
+@subsection The @code{-break-info} Command
+@findex -break-info
+
+@subsubheading Synopsis
+
+@example
+ -break-info @var{breakpoint}
 @end example
 
-@section -break-info <breakpoint>
-REDUNDANT??? Get information about a single breakpoint.
-@subsection GDB command
-@subsection Example
+@c REDUNDANT???
+Get information about a single breakpoint.
+
+@subsubheading GDB command
+
+The corresponding GDB command is @samp{info break @var{breakpoint}}.
+
+@subsubheading Example
 N.A.
 
-@section -break-insert [ "-t" ] [ "-h" ] [ "-r" ] [ "-c" <condition> ] [ "-i" <ignore-count> ] [ "-p" <thread> ] [ <line> | <addr> ]
+@node -break-insert
+@subsection The @code{-break-insert} Command
+@findex -break-insert
+
+@subsubheading Synopsis
+
+@example
+ -break-insert [ -t ] [ -h ] [ -r ]
+    [ -c @var{condition} ] [ -i @var{ignore-count} ]
+    [ -p @var{thread} ] [ @var{line} | @var{addr} ]
+@end example
+
+@noindent
+If specified, @var{line}, can be one of:
 
-<line>, if specified, accordingly to the gdb manual can be one of:
 @itemize @bullet
 @item function
 @c @item +offset
@@ -546,82 +768,110 @@
 @item *address
 @end itemize
 
-The possible forms of this command are: 
+The possible optional parameters of this command are:
 
 @table @samp
 @item -t
 Insert a tempoary breakpoint.
 @item -h
 Insert a hardware breakpoint.
-@item -c <condition>
-Make the breakpoint conditional on <condition>
-@item -i <ignore-count>
-Initialize the <ignore-count>
+@item -c @var{condition}
+Make the breakpoint conditional on @var{condition}.
+@item -i @var{ignore-count}
+Initialize the @var{ignore-count}.
 @item -r
 Insert a regular breakpoint in all the functions whose names match the
 given regular expression.  Other flags are not applicable to regular
 expresson.
 @end table
 
+@subsubheading Result
 
 The result is in the form:
 
-^done,bkptno="<gdb number for this breakpoint>",func="<name of the
-function where the breakpoint was inserted>",file="<source file which
-contains this function>",line="<source line number within the file>"
-
-Note: this is open to change.  An out-of-band breakpoint instead of part
-of the result?
-@subsection GDB command
-break, tbreak, hbreak, thbreak, rbreak.
-@subsection Example
 @example
-(gdb) 
+ ^done,bkptno="@var{number}",func="@var{funcname}",
+  file="@var{filename}",line="@var{lineno}"
+@end example
+
+@noindent
+where @var{number} is the GDB number for this breakpoint, @var{funcname}
+is the name of the function where the breakpoint was inserted,
+@var{filename} is the name of the source file which contains this
+function, and @var{lineno} is the source line number within that file.
+
+Note: this format is open to change.
+@c An out-of-band breakpoint instead of part of the result?
+
+@subsubheading GDB Command
+
+The corresponding GDB commands are @samp{break}, @samp{tbreak},
+@samp{hbreak}, @samp{thbreak}, and @samp{rbreak}.
+
+@subsubheading Example
+
+@smallexample
+(gdb)
 -break-insert main
 ^done,bkpt=@{number="1",addr="0x0001072c",file="recursive2.c",line="4"@}
-(gdb) 
+(gdb)
 -break-insert -t foo
 ^done,bkpt=@{number="2",addr="0x00010774",file="recursive2.c",line="11"@}
-(gdb) 
+(gdb)
 -break-list
 ^done,BreakpointTable=@{hdr=@{"Num","Type","Disp","Enb","Address","What"@},
 bkpt=@{number="1",type="breakpoint",disp="keep",enabled="y",addr="0x0001072c",
 func="main",file="recursive2.c",line="4",times="0"@},
 bkpt=@{number="2",type="breakpoint",disp="del",enabled="y",addr="0x00010774",
 func="foo",file="recursive2.c",line="11",times="0"@}@}
-(gdb) 
+(gdb)
 -break-insert -r foo.*
 ~int foo(int, int);
 ^done,bkpt=@{number="3",addr="0x00010774",file="recursive2.c",line="11"@}
-(gdb) 
+(gdb)
+@end smallexample
+
+@node -break-list
+@subsection The @code{-break-list} Command
+@findex -break-list
+
+@subsubheading Synopsis
+
+@example
+ -break-list
 @end example
 
-@section -break-list
 Displays the list of inserted breakpoints, showing the following fields:
+
 @table @samp
 @item Number
-Number of the breakpoint
+number of the breakpoint
 @item Type
-Type of the breakpoint: breakpoint or watchpoint
+type of the breakpoint: @samp{breakpoint} or @samp{watchpoint}
 @item Disposition
-Should the breakpoint be deleted or disabled when it is hit: keep or nokeep
+should the breakpoint be deleted or disabled when it is hit: @samp{keep}
+or @samp{nokeep}
 @item Enabled
-Is the breakpoint enabled or no: y or n
+is the breakpoint enabled or no: @samp{y} or @samp{n}
 @item Address
-Memory location at which the breakpoint is set.
+memory location at which the breakpoint is set
 @item What
-Logical location of the breakpoint, expressed by function name, file name, line number.
+logical location of the breakpoint, expressed by function name, file
+name, line number
 @item times
-Number of times the breakpoint has been hit.
+number of times the breakpoint has been hit
 @end table
 
 If there are no breakpoints or watchpoints, the BreakpointTable field is
 an empty list.
-@subsection GDB command
-info break
 
-@subsection Example 1
-@example
+@subsubheading GDB Command
+
+The corresponding GDB command is @samp{info break}.
+
+@subsubheading Example
+
+@smallexample
 (gdb)
 -break-list
 ^done,BreakpointTable=@{hdr=@{"Num","Type","Disp","Enb","Address","What"@},
@@ -630,90 +880,110 @@
 bkpt=@{number="2",type="breakpoint",disp="keep",enabled="y",
 addr="0x00010114",func="foo",file="hello.c",line="13",times="0"@}@}
 (gdb)
-@end example
-@subsection Example 2
-@example
+@end smallexample
+
+Here's an example of the result when there are no breakpoints:
+
+@smallexample
 (gdb)
 -break-list
 ^done,BreakpointTable=@{@}
-(gdb) 
+(gdb)
+@end smallexample
+
+@node -break-watch
+@subsection The @code{-break-watch} Command
+@findex -break-watch
+
+@subsubheading Synopsis
+
+@example
+ -break-watch [ -a | -r ]
 @end example
 
-@section -break-watch [ "-a" | "-r" ]
-Create a watchpoint.  With the ``-a'' option it will create an access
-watchpoint, i.e. a watchpoints that triggers either on a read or on a
-write on the memory location.  With the ``-r'' option, the watchoint
-created is a read watchpoint, i.e. it will trigger only when the memory
-location os accessed for reading.  Without either of the options, the
-watchpoint created is a regular watchpoint, i.e. it will trigger whe the
-memory location is accessed for writing.
+Create a watchpoint.  With the @samp{-a} option it will create an
+@dfn{access} watchpoint, i.e. a watchpoints that triggers either on a
+read from or on a write to the memory location.  With the @samp{-r}
+option, the watchpoint created is a @dfn{read} watchpoint, i.e. it will
+trigger only when the memory location is accessed for reading.  Without
+either of the options, the watchpoint created is a regular watchpoint,
+i.e. it will trigger when the memory location is accessed for writing.
+@xref{Set Watchpoints, , Setting watchpoints}.
 
-Note that ``-break-list'' will report a single list of watchpoints and
+Note that @samp{-break-list} will report a single list of watchpoints and
 breakpoints inserted.
 
-@subsection GDB command
-watch, awatch, rwatch
+@subsubheading GDB Command
 
-@subsection Example 1
-Watchpoint on a variable in main().
-@example
-(gdb) 
+The corresponding GDB commands are @samp{watch}, @samp{awatch}, and
+@samp{rwatch}.
+
+@subsubheading Example
+
+Setting a watchpoint on a variable in the @code{main} function:
+
+@smallexample
+(gdb)
 -break-watch x
 ^done,wpt=@{number="2",exp="x"@}
-(gdb) 
--exec-continue 
+(gdb)
+-exec-continue
 ^running
 ^done,reason="watchpoint-trigger",wpt=@{number="2",exp="x"@},
 value=@{old="-268439212",new="55"@},
 frame=@{func="main",args=@{@},file="recursive2.c",line="5"@}
-(gdb) 
-@end example
-@subsection Example 2
-Watchpoint on a variable local to a function. Gdb will stop the program execution 
-twice: first for the variable changing value, then for the watchpoint going out of scope.
-@example
-(gdb) 
+(gdb)
+@end smallexample
+
+Setting a watchpoint on a variable local to a function.  GDB will stop
+the program execution twice: first for the variable changing value, then
+for the watchpoint going out of scope.
+
+@smallexample
+(gdb)
 -break-watch C
 ^done,wpt=@{number="5",exp="C"@}
-(gdb) 
+(gdb)
 -exec-continue
 ^running
 ^done,reason="watchpoint-trigger",
 wpt=@{number="5",exp="C"@},value=@{old="-276895068",new="3"@},
-frame=@{func="callee4",args=@{@},file="../../../devo/gdb/testsuite/gdb.mi/basics.c",
-line="13"@}
-(gdb) 
+frame=@{func="callee4",args=@{@},
+file="../../../devo/gdb/testsuite/gdb.mi/basics.c",line="13"@}
+(gdb)
 -exec-continue
 ^running
 ^done,reason="watchpoint-scope",wpnum="5",
-frame=@{func="callee3",args=@{@{name="strarg",value="0x11940 \"A string argument.\""@}@},
+frame=@{func="callee3",args=@{@{name="strarg",
+value="0x11940 \"A string argument.\""@}@},
 file="../../../devo/gdb/testsuite/gdb.mi/basics.c",line="18"@}
-(gdb) 
-@end example
+(gdb)
+@end smallexample
 
-@subsection Example 3
-Listing breakpoints and watchpoints, at different points in the program execution.
-Note that once the watchpoint goes out of scope, it is deleted.
-@example
-(gdb) 
+Listing breakpoints and watchpoints, at different points in the program
+execution.  Note that once the watchpoint goes out of scope, it is
+deleted.
+
+@smallexample
+(gdb)
 -break-watch C
 ^done,wpt=@{number="2",exp="C"@}
-(gdb) 
--break-list   
+(gdb)
+-break-list
 ^done,BreakpointTable=@{hdr=@{"Num","Type","Disp","Enb","Address","What"@},
 bkpt=@{number="1",type="breakpoint",disp="keep",enabled="y",addr="0x00010734",
 func="callee4",
 file="../../../devo/gdb/testsuite/gdb.mi/basics.c",line="8",times="1"@},
 bkpt=@{number="2",type="watchpoint",disp="keep",
 enabled="y",addr="",what="C",times="0"@}@}
-(gdb) 
+(gdb)
 -exec-continue
 ^running
 ^done,reason="watchpoint-trigger",wpt=@{number="2",exp="C"@},
 value=@{old="-276895068",new="3"@},
 frame=@{func="callee4",args=@{@},
 file="../../../devo/gdb/testsuite/gdb.mi/basics.c",line="13"@}
-(gdb) 
+(gdb)
 -break-list
 ^done,BreakpointTable=@{hdr=@{"Num","Type","Disp","Enb","Address","What"@},
 bkpt=@{number="1",type="breakpoint",disp="keep",enabled="y",addr="0x00010734",
@@ -721,186 +991,298 @@
 file="../../../devo/gdb/testsuite/gdb.mi/basics.c",line="8",times="1"@},
 bkpt=@{number="2",type="watchpoint",disp="keep",
 enabled="y",addr="",what="C",times="-5"@}@}
-(gdb) 
+(gdb)
 -exec-continue
 ^running
 ^done,reason="watchpoint-scope",wpnum="2",
 frame=@{func="callee3",args=@{@{name="strarg",value="0x11940 \"A string argument.\""@}@},
 file="../../../devo/gdb/testsuite/gdb.mi/basics.c",line="18"@}
-(gdb) 
+(gdb)
 -break-list
 ^done,BreakpointTable=@{hdr=@{"Num","Type","Disp","Enb","Address","What"@},
 bkpt=@{number="1",type="breakpoint",disp="keep",enabled="y",addr="0x00010734",
 func="callee4",
 file="../../../devo/gdb/testsuite/gdb.mi/basics.c",line="8",times="1"@}@}
-(gdb) 
-@end example
-@c %%%%%%%%%%%%%%%%%%%%%%%%%%%% CHAPTER %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-@chapter Data manipulation
+(gdb)
+@end smallexample
+
+@c %%%%%%%%%%%%%%%%%%%%%%%%%%%% SECTION %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+@node GDB/MI Data Manipulation
+@section @sc{gdb/mi} Data Manipulation
+
+@cindex data manipulation, in @sc{gdb/mi}
+@cindex @sc{gdb/mi}, data manipulation
+This section describes the @sc{gdb/mi} commands that manipulate data:
+examine memory and registers, evaluate expressions, etc.
 
-@c REMOVED FROM THE ITNERFACE.
-@c @section -data-assign
+@c REMOVED FROM THE INTERFACE.
+@c @subsection -data-assign
 @c Change the value of a program variable. Plenty of side effects.
-@c @subsection GDB command
+@c @subsubsection GDB command
 @c set variable
-@c @subsection Example 
+@c @subsubsection Example
 @c N.A.
 
-@section -data-disassemble ( -s <start-addr> -e <end-addr> ) | (-f <filename> -l <linenum> [-n <lines> ]] -- <mode>
-Where
+
+@menu
+* -data-disassemble::
+* -data-evaluate-expression::
+* -data-list-changed-registers::
+* -data-list-register-names::
+* -data-list-register-values::
+* -data-read-memory::
+* -display-delete::
+* -display-disable::
+* -display-enable::
+* -display-insert::
+* -display-list::
+* -environment-cd::
+* -environment-directory::
+* -environment-path::
+* -environment-pwd::
+@end menu
+
+@node -data-disassemble
+@subsection The @code{-data-disassemble} Command
+@findex -data-disassemble
+
+@subsubheading Synopsis
+
+@example
+ -data-disassemble
+    [ -s @var{start-addr} -e @var{end-addr} ]
+  | [ -f @var{filename} -l @var{linenum} [ -n @var{lines} ] ]
+  -- @var{mode}
+@end example
+
+@noindent
+Where:
+
 @table @samp
-@item <start-addr>
-Is the beginning address (or $pc).
-@item <end-addr>
-End address.
-@item <filename>
-Name of the file to disassemble.
-@item <linenum>
-Line number to disassemble around.
-@item <number-of-lines>
-specifies the number of disassembly lines to be produced. If it is -1
-the whole function will be disassembled, in case no <end> address is
-specified.  If <end> is specified as a non-zero value, and
-<number-of-lines> is lower that the number of disassembly lines between
-<begin> and <end>, we'll display only <number-of-lines> lines, vice
-versa if <number-of-lines> is higher than the number of lines between
-<begin> and <end>, we'll display only the lines up to <end>.
-@item <mode>
-can be 0 (only disassembly) or 1 (mixed source and disassembly).
+@item @var{start-addr}
+is the beginning address (or @code{$pc})
+@item @var{end-addr}
+is the end address
+@item @var{filename}
+is the name of the file to disassemble
+@item @var{linenum}
+is the line number to disassemble around
+@item @var{lines}
+is the the number of disassembly lines to be produced.  If it is -1,
+the whole function will be disassembled, in case no @var{end-add} is
+specified.  If @var{end-addr} is specified as a non-zero value, and
+@var{lines} is lower that the number of disassembly lines between
+@var{start-addr} and @var{end-addr}, only @var{lines} lines are
+displayed; if @var{lines} is higher than the number of lines between
+@var{start-addr} and @var{end-addr}, only the lines up to @var{end-addr}
+are displayed.
+@item @var{mode}
+is either 0 (meaning only disassembly) or 1 (meaning mixed source and
+disassembly)
 @end table
 
+@subsubheading Result
+
 The output for each instruction is composed of two fields:
+
 @itemize @bullet
 @item Address
 @item Func-name
 @item Offset
 @item Instruction
 @end itemize
+
 Note that whatever included in the instruction field, is not manipulated
-directely by Flathead, i.e. it is not possible to adjust its format.
-@subsection GDB command
-N.A. No direct mapping.
+directely by flathead, i.e. it is not possible to adjust its format.
 
-@subsection Example 1
-Disassemble from the current PC value to PC + 20.
+@subsubheading GDB Command
 
-@example
+There's no direct mapping from this command to the CLI.
+
+@subsubheading Example
+
+Disassemble from the current value of @code{$pc} to @code{$pc + 20}:
+
+@smallexample
 (gdb)
--data-disassemble -s $pc -e "$pc + 20" -- 0 
+-data-disassemble -s $pc -e "$pc + 20" -- 0
 ^done,
-asm_insns={
-{address="0x000107c0",func-name="main",offset="4",
-inst="mov  2, %o0"},
-{address="0x000107c4",func-name="main",offset="8",
-inst="sethi  %hi(0x11800), %o2"},
-{address="0x000107c8",func-name="main",offset="12",
-inst="or  %o2, 0x140, %o1\t! 0x11940 <_lib_version+8>"},
-{address="0x000107cc",func-name="main",offset="16",
-inst="sethi  %hi(0x11800), %o2"},
-{address="0x000107d0",func-name="main",offset="20",
-inst="or  %o2, 0x168, %o4\t! 0x11968 <_lib_version+48>"}}
+asm_insns=@{
+@{address="0x000107c0",func-name="main",offset="4",
+inst="mov  2, %o0"@},
+@{address="0x000107c4",func-name="main",offset="8",
+inst="sethi  %hi(0x11800), %o2"@},
+@{address="0x000107c8",func-name="main",offset="12",
+inst="or  %o2, 0x140, %o1\t! 0x11940 <_lib_version+8>"@},
+@{address="0x000107cc",func-name="main",offset="16",
+inst="sethi  %hi(0x11800), %o2"@},
+@{address="0x000107d0",func-name="main",offset="20",
+inst="or  %o2, 0x168, %o4\t! 0x11968 <_lib_version+48>"@}@}
 (gdb)
-@end example
+@end smallexample
 
-@subsection Example 2
-Disassemble the whole function main. Line 32 is part of main.
-@example
+Disassemble the whole @code{main} function.  Line 32 is part of
+@code{main}.
+
+@smallexample
 -data-disassemble -f basics.c -l 32 -- 0
-^done,asm_insns={
-{address="0x000107bc",func-name="main",offset="0",inst="save  %sp, -112, %sp"},
-{address="0x000107c0",func-name="main",offset="4",inst="mov  2, %o0"},
-{address="0x000107c4",func-name="main",offset="8",inst="sethi  %hi(0x11800), %o2"},
+^done,asm_insns=@{
+@{address="0x000107bc",func-name="main",offset="0",
+inst="save  %sp, -112, %sp"@},
+@{address="0x000107c0",func-name="main",offset="4",
+inst="mov   2, %o0"@},
+@{address="0x000107c4",func-name="main",offset="8",
+inst="sethi %hi(0x11800), %o2"@},
 [...]
-{address="0x0001081c",func-name="main",offset="96",inst="ret "},
-{address="0x00010820",func-name="main",offset="100",inst="restore "}}
+@{address="0x0001081c",func-name="main",offset="96",inst="ret "@},
+@{address="0x00010820",func-name="main",offset="100",inst="restore "@}@}
 (gdb)
-@end example
+@end smallexample
 
-@subsection Example 3
-Disassemble 3 instruction from the start of main.
-@example
-(gdb) 
+Disassemble 3 instruction from the start of @code{main}:
+
+@smallexample
+(gdb)
 -data-disassemble -f basics.c -l 32 -n 3 -- 0
-^done,asm_insns={
-{address="0x000107bc",func-name="main",offset="0",inst="save  %sp, -112, %sp"},
-{address="0x000107c0",func-name="main",offset="4",inst="mov  2, %o0"},
-{address="0x000107c4",func-name="main",offset="8",inst="sethi  %hi(0x11800), %o2"}}
-(gdb) 
-@end example
+^done,asm_insns=@{
+@{address="0x000107bc",func-name="main",offset="0",
+inst="save  %sp, -112, %sp"@},
+@{address="0x000107c0",func-name="main",offset="4",
+inst="mov  2, %o0"@},
+@{address="0x000107c4",func-name="main",offset="8",
+inst="sethi  %hi(0x11800), %o2"@}@}
+(gdb)
+@end smallexample
 
-@subsection Example 4
-Disassemble 3 instruction from the start of main in mixed mode.
-@example
-(gdb) 
+Disassemble 3 instruction from the start of @code{main} in mixed mode:
+
+@smallexample
+(gdb)
 -data-disassemble -f basics.c -l 32 -n 3 -- 1
-^done,asm_insns={
-src_and_asm_line={line="31",
-file="/kwikemart/marge/ezannoni/flathead-dev/devo/gdb/testsuite/gdb.mi/basics.c",
-line_asm_insn={
-{address="0x000107bc",func-name="main",offset="0",inst="save  %sp, -112, %sp"}}},
-
-src_and_asm_line={line="32",
-file="/kwikemart/marge/ezannoni/flathead-dev/devo/gdb/testsuite/gdb.mi/basics.c",
-line_asm_insn={
-{address="0x000107c0",func-name="main",offset="4",inst="mov  2, %o0"},
-{address="0x000107c4",func-name="main",offset="8",inst="sethi  %hi(0x11800), %o2"}}}}
-(gdb) 
-@end example
-
-@section -data-evaluate-expression
-Evaluate an expression. The expression could contain an inferior
-function call. The function call will execute synchronously.
-If the expression contains spaces, it must be enclosed in double quotes.
-@subsection GDB command
-print, output, gdb_eval
-@subsection Example
+^done,asm_insns=@{
+src_and_asm_line=@{line="31",
+file="/kwikemart/marge/ezannoni/flathead-dev/devo/gdb/ \
+  testsuite/gdb.mi/basics.c",line_asm_insn=@{
+@{address="0x000107bc",func-name="main",offset="0",
+inst="save  %sp, -112, %sp"@}@}@},
+
+src_and_asm_line=@{line="32",
+file="/kwikemart/marge/ezannoni/flathead-dev/devo/gdb/ \
+  testsuite/gdb.mi/basics.c",line_asm_insn=@{
+@{address="0x000107c0",func-name="main",offset="4",
+inst="mov  2, %o0"@},
+@{address="0x000107c4",func-name="main",offset="8",
+inst="sethi  %hi(0x11800), %o2"@}@}@}@}
+(gdb)
+@end smallexample
+
+
+@node -data-evaluate-expression
+@subsection The @code{-data-evaluate-expression} Command
+@findex -data-evaluate-expression
+
+@subsubheading Synopsis
+
 @example
+ -data-evaluate-expression @var{expr}
+@end example
+
+Evaluate @var{expr} as an expression.  The expression could contain an
+inferior function call.  The function call will execute synchronously.
+If the expression contains spaces, it must be enclosed in double quotes.
+
+@subsubheading GDB Command
+
+The corresponding GDB commands are @samp{print}, @samp{output}, and
+@code{call}.  In @code{gdbtk} only, there's a corresponding
+@samp{gdb_eval} command.
+
+@subsubheading Example
+
+In the following example, the numbers that precede the commands are the
+@dfn{tokens} described in @ref{GDB/MI Command Syntax, , @sc{gdb/mi}
+Command Syntax}.  Notice how @sc{gdb/mi} returns the same tokens in its
+output.
+
+@smallexample
 211-data-evaluate-expression A
 211^done,value="1"
-(gdb) 
+(gdb)
 311-data-evaluate-expression &A
 311^done,value="0xefffeb7c"
 (gdb)
 411-data-evaluate-expression A+3
 411^done,value="4"
-(gdb) 
+(gdb)
 511-data-evaluate-expression "A + 3"
 511^done,value="4"
-(gdb) 
-@end example
+(gdb)
+@end smallexample
+
+
+@node -data-list-changed-registers
+@subsection The @code{-data-list-changed-registers} Command
+@findex -data-list-changed-registers
+
+@subsubheading Synopsis
 
-@section -data-list-changed-registers
-Display a list of the registers that have changed.
-@subsection GDB command
-gdb_changed_register_list. This is in gdbtk only.
-@subsection Example
-On a PPC MBX board.
 @example
-(gdb) 
+ -data-list-changed-registers
+@end example
+
+Display a list of the registers that have changed.
+
+@subsubsection GDB Command
+
+GDB doesn't have a direct analog for this command; @code{gdbtk} has the
+corresponding command @samp{gdb_changed_register_list}.
+
+@subsubsection Example
+
+On a PPC MBX board:
+
+@smallexample
+(gdb)
 -exec-continue
 ^running
 
-(gdb) 
+(gdb)
 *stopped,reason="breakpoint-hit",bkptno="1",frame=@{func="main",
 args=@{@},file="try.c",line="5"@}
-(gdb) 
+(gdb)
 -data-list-changed-registers
 ^done,changed-registers=@{"0","1","2","4","5","6","7","8","9",
 "10","11","13","14","15","16","17","18","19","20","21","22","23",
 "24","25","26","27","28","30","31","64","65","66","67","69"@}
-(gdb) 
+(gdb)
+@end smallexample
+
+
+@node -data-list-register-names
+@subsection The @code{-data-list-register-names} Command
+@findex -data-list-register-names
+
+@subsubheading Synopsis
+
+@example
+ -data-list-register-names [ ( @var{regno} )+ ]
 @end example
 
-@section -data-list-register-names
 Show a list of register names for the current target.  If no arguments
 are given, it shows a list of the names of all the registers.  If
 integer numbers are given as arguments, it will print a list of the
-names corresponding to the arguments.
-@subsection GDB command
-gdb_regnames
-@subsection Example
+names of the registers corresponding to the arguments.
+
+@subsubsection GDB Command
+
+GDB does not have a command which directly corresponds to
+@samp{-data-list-register-names}.  In @code{gdbtk} there is a
+corresponding command @samp{gdb_regnames}.
+
+@subsubsection Example
+
 For the PPC MBX board:
-@example
+@smallexample
 (gdb)
 -data-list-register-names
 ^done,register-names=@{"r0","r1","r2","r3","r4","r5","r6","r7",
@@ -913,35 +1295,57 @@
 (gdb)
 -data-list-register-names 1 2 3
 ^done,register-names=@{"r1","r2","r3"@}
-(gdb) 
-@end example
+(gdb)
+@end smallexample
 
-@section -data-list-register-values
-Display the registers contents.  Arguments are the format according to
-which the registers contents are to be returned, and a list of numbers
-specifying the registers to display. A missing list of number indicates
-that the contents of all the registers must be returned.
-Allowed formats are:
-@itemize @bullet
-@item 'x': Hexadecimal
-@item 'o': Octal
-@item 't': Binary
-@item 'd': Decimal
-@item 'r': Raw
-@item 'N': Natural
-@end itemize
+@node -data-list-register-values
+@subsection The @code{-data-list-register-values} Command
+@findex -data-list-register-values
+
+@subsubheading Synopsis
 
-@subsection GDB command
-info reg, info all-reg  AND/OR gdb_fetch_registers
-@subsection Example
-For a PPC MBX board. Note, line breaks are for readability only, they
-don't appear in the actual output.
 @example
-(gdb) 
+ -data-list-register-values @var{fmt} [ ( @var{regno} )*]
+@end example
+
+Display the registers contents.  @var{fmt} is the format according to
+which the registers contents are to be returned, followed by an optional
+list of numbers specifying the registers to display.  A missing list of
+numbers indicates that the contents of all the registers must be returned.
+
+Allowed formats for @var{fmt} are:
+
+@table @code
+@item x
+Hexadecimal
+@item o
+Octal
+@item t
+Binary
+@item d
+Decimal
+@item r
+Raw
+@item N
+Natural
+@end table
+
+@subsubheading GDB Command
+
+The corresponding GDB commands are @samp{info reg}, @samp{info all-reg},
+and (in @code{gdbtk}) @samp{gdb_fetch_registers}.
+
+@subsubheading Example
+
+For a PPC MBX board (note: line breaks are for readability only, they
+don't appear in the actual output):
+
+@smallexample
+(gdb)
 -data-list-register-values r 64 65
 ^done,register-values=@{@{number="64",value="0xfe00a300"@},
 @{number="65",value="0x00029002"@}@}
-(gdb) 
+(gdb)
 -data-list-register-values x
 ^done,register-values=@{@{number="0",value="0xfe0043c8"@},
 @{number="1",value="0x3fff88"@},@{number="2",value="0xfffffffe"@},
@@ -979,51 +1383,81 @@
 @{number="65",value="0x29002"@},@{number="66",value="0x202f04b5"@},
 @{number="67",value="0xfe0043b0"@},@{number="68",value="0xfe00b3e4"@},
 @{number="69",value="0x20002b03"@}@}
-(gdb) 
+(gdb)
+@end smallexample
+
+
+@node -data-read-memory
+@subsection The @code{-data-read-memory} Command
+@findex -data-read-memory
+
+@subsubheading Synopsis
+
+@example
+ -data-read-memory [ -o @var{byte-offset} ]
+   @var{address} @var{word-format} @var{word-size}
+   @var{nr-rows} @var{nr-cols} [ @var{aschar} ]
 @end example
 
-@section -data-read-memory [ -o <byte-offset> ] [ -- ] <address> <word-format> <word-size> <nr-rows> <nr-cols> [ <aschar> ]
-Where
+@noindent
+where:
+
 @table @samp
-@item <address>
+@item @var{address}
 An expression specifying the address of the first memory word to be
 read.  Complex expressions containing embedded white space should be
 quoted using the C convention.
-@item <word-format>
+
+@item @var{word-format}
 The format to be used to print the memory words.  The notation is the
-same as for GDB's @code{print} command.
-@item <word-size>
+same as for GDB's @code{print} command (@pxref{Output Formats, , Output
+formats}).
+
+@item @var{word-size}
 The size of each memory word in bytes.
-@item <nr-rows>
+
+@item @var{nr-rows}
 The number of rows in the output table.
-@item <nr-cols>
+
+@item @var{nr-cols}
 The number of columns in the output table.
-@item <aschar>
-If present, indicates that each row should include an ascii dump.  The
-value of <aschar> is used as a padding character when a byte is not a
-member of the printable ascii character set (@code{<32} or @code{>126}).
-@item <byte-offset>
-An offset to add to the <address> before fetching memory.
+
+@item @var{aschar}
+If present, indicates that each row should include an @sc{ascii} dump.  The
+value of @var{aschar} is used as a padding character when a byte is not a
+member of the printable @sc{ascii} character set (printable @sc{ascii}
+characters are those whose code is between 32 and 126, inclusively).
+
+@item @var{byte-offset}
+An offset to add to the @var{address} before fetching memory.
 @end table
-Display memory contents as a table of <nr-rows> by <nr-cols> words.
-Each word being <word-size> bytes.  In total @code{<nr-rows> * <nr-cols>
-* <word-size>} bytes are read (returned as @code{total-bytes}.  Should
-less then the requested number of bytes be returned by the target, the
-missing words are identified using @code{N/A}.  The number of bytes read
-from the target is returned in @code{nr-bytes} and the starting address
-used to read memory by @code{addr}.
+
+This command displays memory contents as a table of @var{nr-rows} by
+@var{nr-cols} words, each word being @var{word-size} bytes.  In total,
+@code{@var{nr-rows} * @var{nr-cols} * @var{word-size}} bytes are read
+(returned as @samp{total-bytes}.  Should less then the requested number
+of bytes be returned by the target, the missing words are identified
+using @samp{N/A}.  The number of bytes read  from the target is returned
+in @samp{nr-bytes} and the starting address used to read memory in
+@samp{addr}.
 
 The address of the next/previous page or row is available in
-@code{next-row} and @code{prev-row}, @code{next-page} and
-@code{prev-page}.
-@subsection GDB command
-x AND/OR gdb_get_mem AND/OR GDBtk's memory read.
-@subsection Example 1
+@samp{next-row} and @samp{prev-row}, @samp{next-page} and
+@samp{prev-page}.
+
+@subsubheading GDB Command
+
+The corresponding GDB command is @samp{x}.  @code{gdbtk} has
+@samp{gdb_get_mem} memory read.
+
+@subsubheading Example
+
 Read six bytes of memory starting at @code{bytes+6} but then offset by
 @code{-6} bytes.  Format as three rows of two columns. One byte per
 word.  Display each word in hex.
-@example
-(gdb) 
+
+@smallexample
+(gdb)
 9-data-read-memory -o -6 -- bytes+6 x 1 3 2
 9^done,addr="0x00001390",nr-bytes="6",total-bytes="6",
 next-row="0x00001396",prev-row="0x0000138e",next-page="0x00001396",
@@ -1031,26 +1465,28 @@
 @{addr="0x00001390",data=@{"0x00","0x01"@}@},
 @{addr="0x00001392",data=@{"0x02","0x03"@}@},
 @{addr="0x00001394",data=@{"0x04","0x05"@}@}@}
-(gdb) 
-@end example
-@subsection Example 2
+(gdb)
+@end smallexample
+
 Read two bytes of memory starting at address @code{shorts + 64} and
 display as a single word formatted in decimal.
-@example
-(gdb) 
+
+@smallexample
+(gdb)
 5-data-read-memory shorts+64 d 2 1 1
 5^done,addr="0x00001510",nr-bytes="2",total-bytes="2",
 next-row="0x00001512",prev-row="0x0000150e",
 next-page="0x00001512",prev-page="0x0000150e",memory=@{
 @{addr="0x00001510",data=@{"128"@}@}@}
-(gdb) 
-@end example
-@subsection Example 3
+(gdb)
+@end smallexample
+
 Read thirty two bytes of memory starting at @code{bytes+16} and format
 as eight rows of four columns.  Include a string encoding with @code{x}
 used as the non-printable character.
-@example
-(gdb) 
+
+@smallexample
+(gdb)
 4-data-read-memory bytes+16 x 1 8 4 x
 4^done,addr="0x000013a0",nr-bytes="32",total-bytes="32",
 next-row="0x000013c0",prev-row="0x0000139c",
@@ -1063,287 +1499,537 @@
 @{addr="0x000013b4",data=@{"0x24","0x25","0x26","0x27"@},ascii="$%&'"@},
 @{addr="0x000013b8",data=@{"0x28","0x29","0x2a","0x2b"@},ascii="()*+"@},
 @{addr="0x000013bc",data=@{"0x2c","0x2d","0x2e","0x2f"@},ascii=",-./"@}@}
-(gdb) 
+(gdb)
+@end smallexample
+
+@node -display-delete
+@subsection The @code{-display-delete} Command
+@findex -display-delete
+
+@subsubheading Synopsis
+
+@example
+ -display-delete @var{number}
 @end example
 
-@section -display-delete <number>
-Delete the display <number>.
-@subsection GDB command
-delete display 
-@subsection Example
+Delete the display @var{number}.
+
+@subsubheading GDB Command
+
+The corresponding GDB command is @samp{delete display}.
+
+@subsubheading Example
 N.A.
 
-@section -display-disable <number>
-Disable display <number>
-@subsection GDB command
-disable display
-@subsection Example
+
+@node -display-disable
+@subsection The @code{-display-disable} Command
+@findex -display-disable
+
+@subsubheading Synopsis
+
+@example
+ -display-disable @var{number}
+@end example
+
+Disable display @var{number}.
+
+@subsubheading GDB Command
+
+the corresponding GDB command is @samp{disable display}.
+
+@subsubheading Example
 N.A.
 
-@section -display-enable <number>
-Enable display <number>
-@subsection GDB command
-enable display
-@subsection Example
+
+@node -display-enable
+@subsection The @code{-display-enable} Command
+@findex -display-enable
+
+@subsubheading Synopsis
+
+@example
+ -display-enable @var{number}
+@end example
+
+Enable display @var{number}.
+
+@subsubheading GDB Command
+
+The corresponding GDB command is @samp{enable display}.
+
+@subsubheading Example
 N.A.
 
-@section -display-insert <expression>
-Display <expression> every time the program stops.
-@subsection GDB command
-display
-@subsection Example
+
+@node -display-insert
+@subsection The @code{-display-insert} Command
+@findex -display-insert
+
+@subsubheading Synopsis
+
+@example
+ -display-insert @var{expression}
+@end example
+
+Display @var{expression} every time the program stops.
+
+@subsubheading GDB Command
+
+The corresponding GDB command is @samp{display}.
+
+@subsubheading Example
 N.A.
 
-@section -display-list
-List the displays. Do not show the current values.
-@subsection GDB command
-info display
-@subsection Example
+
+@node -display-list
+@subsection The @code{-display-list} Command
+@findex -display-list
+
+@subsubheading Synopsis
+
+@example
+ -display-list
+@end example
+
+List the displays.  Do not show the current values.
+
+@subsubheading GDB Command
+
+The corresponding GDB command is @samp{info display}.
+
+@subsubheading Example
 N.A.
 
-@section -environment-cd <pathdir>
-Set GDB's working directory.
-@subsection GDB command
-cd
-@subsection Example
+
+@node -environment-cd
+@subsection The @code{-environment-cd} Command
+@findex -environment-cd
+
+@subsubheading Synopsis
+
 @example
-(gdb) 
+ -environment-cd @var{pathdir}
+@end example
+
+Set GDB's working directory.
+
+@subsubheading GDB Command
+
+the corresponding GDB command is @samp{cd}.
+
+@subsubheading Example
+
+@smallexample
+(gdb)
 -environment-cd /kwikemart/marge/ezannoni/flathead-dev/devo/gdb
 ^done
-(gdb) 
-@end example
+(gdb)
+@end smallexample
+
+
+@node -environment-directory
+@subsection The @code{-environment-directory} Command
+@findex -environment-directory
+
+@subsubheading Synopsis
 
-@section -environment-directory <pathdir>
-Add directory <pathdir> to beginning of search path for source files.
-@subsection GDB command
-dir
-@subsection Example
 @example
-(gdb) 
+ -environment-directory @var{pathdir}
+@end example
+
+Add directory @var{pathdir} to beginning of search path for source files.
+
+@subsubheading GDB Command
+
+The corresponding GDB command is @samp{dir}.
+
+@subsubheading Example
+
+@smallexample
+(gdb)
 -environment-directory /kwikemart/marge/ezannoni/flathead-dev/devo/gdb
 ^done
 (gdb)
-@end example 
+@end smallexample
+
+
+@node -environment-path
+@subsection The @code{-environment-path} Command
+@findex -environment-path
+
+@subsubheading Synopsis
 
-@section -environment-path @{ <pathdir> @}+
-Add directories to beginning of search path for object files.
-@subsection GDB command
-path
-@subsection Example
 @example
-(gdb) 
+ -environment-path ( @var{pathdir} )+
+@end example
+
+Add directories to beginning of search path for object files.
+
+@subsubheading GDB Command
+
+The corresponding GDB command is @samp{path}.
+
+@subsubheading Example
+
+@smallexample
+(gdb)
 -environment-path /kwikemart/marge/ezannoni/flathead-dev/ppc-eabi/gdb
 ^done
 (gdb)
-@end example 
+@end smallexample
+
+
+@node -environment-pwd
+@subsection The @code{-environment-pwd} Command
+@findex -environment-pwd
+
+@subsubheading Synopsis
 
-@section -environment-pwd
-Show the current working directory
-@subsection GDB command
-pwd
-@subsection Example
 @example
-(gdb) 
+ -environment-pwd
+@end example
+
+Show the current working directory.
+
+@subsubsection GDB command
+
+The corresponding GDB command is @samp{pwd}.
+
+@subsubsection Example
+
+@smallexample
+(gdb)
 -environment-pwd
 ~Working directory /kwikemart/marge/ezannoni/flathead-dev/devo/gdb.
 ^done
-(gdb) 
-@end example
+(gdb)
+@end smallexample
 
-@c %%%%%%%%%%%%%%%%%%%%%%%%%%%% CHAPTER %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-@chapter Program control
+@c %%%%%%%%%%%%%%%%%%%%%%%%%%%% SECTION %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+@node GDB/MI Program Control
+@section @sc{gdb/mi} Program control
+
+@subsubheading Program termination
 
-@section Program termination
 As a result of execution, the inferior program can run to completion, if
 it doesn't encouter any breakpoints.  In this case the ouput will
 include an exit code, if the program has exited exceptionally.
-@subsection Example 1
+
+@subsubheading Example
+
 Program exited normally:
-@example
-(gdb) 
+
+@smallexample
+(gdb)
 -exec-run
 ^running
 (gdb)
 x = 55
 *stopped,reason="exited-normally"
-(gdb) 
-@end example
+(gdb)
+@end smallexample
 
-@subsection Example 2
 Program exited exceptionally:
-@example
-(gdb) 
+
+@smallexample
+(gdb)
 -exec-run
 ^running
 (gdb)
 x = 55
 *stopped,reason="exited",exit-code="01"
-(gdb) 
-@end example
+(gdb)
+@end smallexample
+
+Another way the program can terminate is if it receives a signal such as
+@code{SIGINT}.  In this case, @sc{gdb/mi} displays this:
+
+@smallexample
+(gdb)
+*stopped,reason="exited-signalled",signal-name="SIGINT",
+signal-meaning="Interrupt"
+@end smallexample
+
+
+@menu
+* -exec-abort::
+* -exec-arguments::
+* -exec-continue::
+* -exec-finish::
+* -exec-interrupt::
+* -exec-next::
+* -exec-next-instruction::
+* -exec-return::
+* -exec-run::
+* -exec-show-arguments::
+* -exec-step::
+* -exec-step-instruction::
+* -exec-until::
+* -file-exec-and-symbols::
+* -file-exec-file::
+* -file-list-exec-sections::
+* -file-list-exec-source-files::
+* -file-list-shared-libraries::
+* -file-list-symbol-files::
+* -file-symbol-file::
+@end menu
+
+@node -exec-abort
+@subsection The @code{-exec-abort} Command
+@findex -exec-abort
+
+@subsubheading Synopsis
 
-Another way the program can terminate is if it receives a signal like SIGINT.
-@subsection Example 
-Program exited with signal (for a more complete example, see the exec-interrupt command).
 @example
-(gdb) 
-*stopped,reason="exited-signalled",signal-name="SIGINT",signal-meaning="Interrupt"
+ -exec-abort
 @end example
 
-
-@section -exec-abort
 Kill the inferior running program.
 
-@subsection GDB command
-kill
+@subsubheading GDB Command
 
-@subsection Example
+The corresponding GDB command is @samp{kill}.
+
+@subsubheading Example
 N.A.
 
-@section -exec-arguments
-Set the inferior program arguments, to be used in the next -exec-run.
 
-@subsection GDB command
-set args
+@node -exec-arguments
+@subsection The @code{-exec-arguments} Command
+@findex -exec-arguments
+
+@subsubheading Synopsis
+
+@example
+ -exec-arguments @var{args}
+@end example
+
+Set the inferior program arguments, to be used in the next
+@samp{-exec-run}.
+
+@subsubheading GDB Command
+
+The corresponding GDB command is @samp{set args}.
+
+@subsubheading Example
+
+@c FIXME!
+Don't have one around.
 
-@subsection Example
-Don't have it around.
 
-@section -exec-continue
-Asynchronous command. Resumes the execution of the inferior program until
-a breakpoint is encountered, or the inferior exits.
+@node -exec-continue
+@subsection The @code{-exec-continue} Command
+@findex -exec-continue
 
-@subsection GDB command
-continue
+@subsubheading Synopsis
 
-@subsection Example
 @example
+ -exec-continue
+@end example
+
+Asynchronous command.  Resumes the execution of the inferior program
+until a breakpoint is encountered, or until the inferior exits.
+
+@subsubheading GDB Command
+
+The corresponding GDB corresponding is @samp{continue}.
+
+@subsubheading Example
+
+@smallexample
 -exec-continue
 ^running
-(gdb) 
+(gdb)
 @@Hello world
 *stopped,reason="breakpoint-hit",bkptno="2",frame=@{func="foo",args=@{@},
 file="hello.c",line="13"@}
 (gdb)
-@end example
+@end smallexample
 
-@section -exec-finish
-Asynchronous command. Resumes the execution of the inferior program until the
-current function is exited. Displays the results returned by the function (???).
 
-@subsection GDB command
-finish
+@node -exec-finish
+@subsection The @code{-exec-finish} Command
+@findex -exec-finish
+
+@subsubheading Synopsis
 
-@subsection Example 1
-Function returning 'void'.
 @example
+ -exec-finish
+@end example
+
+Asynchronous command.  Resumes the execution of the inferior program
+until the current function is exited.  Displays the results returned by
+the function.
+
+@subsubheading GDB Command
+
+The corresponding GDB command is @samp{finish}.
+
+@subsubheading Example
+
+Function returning @code{void}.
+
+@smallexample
 -exec-finish
 ^running
-(gdb) 
+(gdb)
 @@hello from foo
 *stopped,reason="function-finished",frame=@{func="main",args=@{@},
 file="hello.c",line="7"@}
-(gdb) 
-@end example
-@subsection Example 2
-Function returning other than 'void'. The name of the internal gdb variable storing the
-result is printed, and the value itself.
-@example
+(gdb)
+@end smallexample
+
+Function returning other than @code{void}.  The name of the internal GDB
+variable storing the result is printed, together with the value itself.
+
+@smallexample
 -exec-finish
 ^running
-(gdb) 
+(gdb)
 *stopped,reason="function-finished",frame=@{addr="0x000107b0",func="foo",
-args=@{@{name="a",value="1"@},@{name="b",value="9"@}@},file="recursive2.c",line="14"@},
+args=@{@{name="a",value="1"@},@{name="b",value="9"@}@},
+file="recursive2.c",line="14"@},
 gdb-result-var="$1",return-value="0"
-(gdb) 
+(gdb)
+@end smallexample
 
+
+@node -exec-interrupt
+@subsection The @code{-exec-interrupt} Command
+@findex -exec-interrupt
+
+@subsubheading Synopsis
+
+@example
+ -exec-interrupt
 @end example
-@section -exec-interrupt
+
 Asynchronous command. Interrupts the background execution of the target.
 Note how the token associated with the stop message is the one for the
-execution command that has been interrupted. The token for the interrupt
+execution command that has been interrupted.  The token for the interrupt
 itself only appears in the '^done' output.  If the user is trying to
-interrupt a non running program, an error message will be printed.
-@subsection GDB command
-interrupt
+interrupt a non-running program, an error message will be printed.
 
-@subsection Example
-@example
-(gdb) 
+@subsubheading GDB Command
+
+The corresponding GDB command is @samp{interrupt}.
+
+@subsubheading Example
+
+@smallexample
+(gdb)
 111-exec-continue
 111^running
 
-(gdb) 
+(gdb)
 222-exec-interrupt
 222^done
-(gdb) 
+(gdb)
 111*stopped,signal-name="SIGINT",signal-meaning="Interrupt",
 frame=@{addr="0x00010140",func="foo",args=@{@},file="try.c",line="13"@}
-(gdb) 
+(gdb)
 
-(gdb) 
+(gdb)
 -exec-interrupt
 ^error,msg="mi_cmd_exec_interrupt: Inferior not executing."
-(gdb) 
+(gdb)
+@end smallexample
+
 
+@node -exec-next
+@subsection The @code{-exec-next} Command
+@findex -exec-next
+
+@subsubheading Synopsis
+
+@example
+ -exec-next
 @end example
 
-@section -exec-next
-Asynchronous command. Resumes execution of the inferior program, stopping
+Asynchronous command.  Resumes execution of the inferior program, stopping
 when the beginning of the next source line is reached.
 
-@subsection GDB command
-next
+@subsubheading GDB Command
 
-@subsection Example
-@example
+The corresponding GDB command is @samp{next}.
+
+@subsubheading Example
+
+@smallexample
 -exec-next
 ^running
-(gdb) 
+(gdb)
 *stopped,reason="end-stepping-range",line="8",file="hello.c"
-(gdb) 
+(gdb)
+@end smallexample
+
+
+@node -exec-next-instruction
+@subsection The @code{-exec-next-instruction} Command
+@findex -exec-next-instruction
+
+@subsubheading Synopsis
+
+@example
+ -exec-next-instruction
 @end example
 
-@section -exec-next-instruction
-Asynchronous command. Executes one machine instruction. If the
+Asynchronous command.  Executes one machine instruction.  If the
 instruction is a function call continues until the function returns.  If
 the program stops at an instruction in the middle of a source line, the
 address will be printed as well.
-@subsection GDB command
-nexti
 
-@subsection Example
-@example
-(gdb) 
--exec-next-instruction
-^running
+@subsubheading GDB Command
 
-(gdb) 
+The corresponding GDB command is @samp{nexti}.
+
+@subsubheading Example
+
+@smallexample
+(gdb)
+-exec-next-instruction
+^running
+
+(gdb)
 *stopped,reason="end-stepping-range",
 addr="0x000100d4",line="5",file="hello.c"
-(gdb) 
-@end example
+(gdb)
+@end smallexample
+
 
-@section -exec-return
-Makes current function return immediately. Doesn't execute the inferior.
-It displays the new current frame.
+@node -exec-return
+@subsection The @code{-exec-return} Command
+@findex -exec-return
 
-@subsection GDB command
-return
+@subsubheading Synopsis
 
-@subsection Example
 @example
+ -exec-return
+@end example
+
+Makes current function return immediately.  Doesn't execute the inferior.
+Displays the new current frame.
+
+@subsubheading GDB Command
+
+The corresponding GDB command is @samp{return}.
+
+@subsubheading Example
+
+@smallexample
 (gdb)
 200-break-insert callee4
 200^done,bkpt=@{number="1",addr="0x00010734",
 file="../../../devo/gdb/testsuite/gdb.mi/basics.c",line="8"@}
 (gdb)
-000-exec-run 
+000-exec-run
 000^running
 (gdb)
 000*stopped,reason="breakpoint-hit",bkptno="1",
 frame=@{func="callee4",args=@{@},
 file="../../../devo/gdb/testsuite/gdb.mi/basics.c",line="8"@}
-(gdb) 
+(gdb)
 205-break-delete
 205^done
 (gdb)
@@ -1352,356 +2038,631 @@
 args=@{@{name="strarg",value="0x11940 \"A string argument.\""@}@},
 file="../../../devo/gdb/testsuite/gdb.mi/basics.c",line="18"@}
 (gdb)
+@end smallexample
+
+
+@node -exec-run
+@subsection The @code{-exec-run} Command
+@findex -exec-run
+
+@subsubheading Synopsis
+
+@example
+ -exec-run
 @end example
 
-@section -exec-run
-Asynchronous command. Starts execution of the inferior from the
-beginning. The inferior executes until either a breakpoint is
+Asynchronous command.  Starts execution of the inferior from the
+beginning.  The inferior executes until either a breakpoint is
 encountered or the program exits.
 
-@subsection GDB command
-run
+@subsubheading GDB Command
 
-@subsection Example
-@example
-(gdb) 
+The corresponding GDB command is @samp{run}
+
+@subsubheading Example
+
+@smallexample
+(gdb)
 -break-insert main
 ^done,bkpt=@{number="1",addr="0x0001072c",file="recursive2.c",line="4"@}
-(gdb) 
+(gdb)
 -exec-run
 ^running
-(gdb) 
+(gdb)
 *stopped,reason="breakpoint-hit",bkptno="1",
 frame=@{func="main",args=@{@},file="recursive2.c",line="4"@}
-(gdb) 
-@end example
+(gdb)
+@end smallexample
 
 
-@section -exec-show-arguments
+@node -exec-show-arguments
+@subsection The @code{-exec-show-arguments} Command
+@findex -exec-show-arguments
+
+@subsubheading Synopsis
+
+@example
+ -exec-show-arguments
+@end example
+
 Print the arguments of the program.
-@subsection GDB command
-show args
-@subsection Example
+
+@subsubheading GDB Command
+
+The corresponding GDB command is @samp{show args}.
+
+@subsubheading Example
 N.A.
 
-@c @section -exec-signal
+@c @subsection -exec-signal
+
+@node -exec-step
+@subsection The @code{-exec-step} Command
+@findex -exec-step
 
-@section -exec-step
-Asynchronous command. Resumes execution of the inferior program, stopping
+@subsubheading Synopsis
+
+@example
+ -exec-step
+@end example
+
+Asynchronous command.  Resumes execution of the inferior program, stopping
 when the beginning of the next source line is reached, if the next
-source line is not a function call. If it is, stop at the first
+source line is not a function call.  If it is, stop at the first
 instruction of the called function.
 
-@subsection GDB command
-step
+@subsubheading GDB Command
+
+The corresponding GDB command is @samp{step}.
+
+@subsubheading Example
 
-@subsection Example 1
 Stepping into a function:
-@example
+
+@smallexample
 -exec-step
 ^running
-(gdb) 
-*stopped,reason="end-stepping-range",frame=@{func="foo",args=@{@{name="a",value="10"@},
+(gdb)
+*stopped,reason="end-stepping-range",
+frame=@{func="foo",args=@{@{name="a",value="10"@},
 @{name="b",value="0"@}@},file="recursive2.c",line="11"@}
-(gdb) 
-@end example
-@subsection Example 2
-Regular stepping 
-@example
+(gdb)
+@end smallexample
+
+Regular stepping:
+
+@smallexample
 -exec-step
 ^running
-(gdb) 
+(gdb)
 *stopped,reason="end-stepping-range",line="14",file="recursive2.c"
-(gdb) 
+(gdb)
+@end smallexample
+
+
+@node -exec-step-instruction
+@subsection The @code{-exec-step-instruction} Command
+@findex -exec-step-instruction
+
+@subsubheading Synopsis
+
+@example
+ -exec-step-instruction
 @end example
 
-@section -exec-step-instruction
-Asynchronous command. Resumes the inferior which executes one machine
-instruction. The output, once stop, will vary depend on whether we have
+Asynchronous command.  Resumes the inferior which executes one machine
+instruction.  The output, once stop, will vary depend on whether we have
 stopped in the middle of a source line or not.  In the former case, the
 address at which the program stopped will be printed as well.
 
-@subsection GDB command
-stepi
+@subsubheading GDB Command
 
-@subsection Example
-@example
-(gdb) 
+The corresponding GDB command is @samp{stepi}.
+
+@subsubheading Example
+
+@smallexample
+(gdb)
 -exec-step-instruction
 ^running
 
-(gdb) 
+(gdb)
 *stopped,reason="end-stepping-range",
 frame=@{func="foo",args=@{@},file="try.c",line="10"@}
-(gdb) 
+(gdb)
 -exec-step-instruction
 ^running
 
-(gdb) 
+(gdb)
 *stopped,reason="end-stepping-range",
 frame=@{addr="0x000100f4",func="foo",args=@{@},file="try.c",line="10"@}
-(gdb) 
+(gdb)
+@end smallexample
+
+
+@node -exec-until
+@subsection The @code{-exec-until} Command
+@findex -exec-until
+
+@subsubheading Synopsis
+
+@example
+ -exec-until [ @var{location} ]
 @end example
 
-@section -exec-until
-Asynchronous command. Executes the inferior until the location specified
-in the argument is reached. If there is no argument, the inferior
+Asynchronous command.  Executes the inferior until the @var{location}
+specified in the argument is reached.  If there is no argument, the inferior
 executes until a source line greater than the current one is reached.
 The reason for stopping in this case will be ``location-reached''.
-@subsection GDB command
-until
 
-@subsection Example
-@example
-(gdb) 
+@subsubheading GDB Command
+
+The corresponding GDB command is @samp{until}.
+
+@subsubheading Example
+
+@smallexample
+(gdb)
 -exec-until recursive2.c:6
 ^running
-(gdb) 
+(gdb)
 x = 55
 *stopped,reason="location-reached",frame=@{func="main",args=@{@},
 file="recursive2.c",line="6"@}
-(gdb) 
-@end example
+(gdb)
+@end smallexample
 
-@section -file-clear
+@ignore
+@subsection -file-clear
 Is this going away????
+@end ignore
 
-@section -file-exec-and-symbols <file>
-Specify the executable file to be debugged. This file is the one from
-which the symbol table is also read.  If no file is specified, it clears
-the executable and symbol information.  If breakpoints are set when
-using this command with no arguments, gdb will produce errors. No output
-is produced, except a completion notification.
-@subsection GDB command
-file <file>
 
-@subsection Example
+@node -file-exec-and-symbols
+@subsection The @code{-file-exec-and-symbols} Command
+@findex -file-exec-and-symbols
+
+@subsubheading Synopsis
+
 @example
+ -file-exec-and-symbols @var{file}
+@end example
+
+Specify the executable file to be debugged.  This file is the one from
+which the symbol table is also read.  If no file is specified, the
+command clears the executable and symbol information.  If breakpoints
+are set when using this command with no arguments, gdb will produce
+error messages.  Oterwise, no output is produced, except a completion
+notification.
+
+@subsubheading GDB Command
+
+The corresponding GDB command is @samp{file}.
+
+@subsubheading Example
+
+@smallexample
 (gdb)
 -file-exec-and-symbols /kwikemart/marge/ezannoni/TRUNK/mbx/hello.mbx
 ^done
 (gdb)
+@end smallexample
+
+
+@node -file-exec-file
+@subsection The @code{-file-exec-file} Command
+@findex -file-exec-file
+
+@subsubheading Synopsis
+
+@example
+ -file-exec-file @var{file}
 @end example
 
-@section -file-exec-file <file>
-Specify the executable file to be debugged. The symbol table is not read
-from this file. If used without argument gdb clears the information
+Specify the executable file to be debugged.  Unlike
+@samp{-file-exec-and-symbols}, the symbol table is @emph{not} read
+from this file.  If used without argument, GDB clears the information
 about the executable file.  No output is produced, except a completion
 notification.
-@subsection GDB command
-exec-file <file>
 
-@subsection Example
-@example
-(gdb) 
+@subsubheading GDB Command
+
+The corresponding GDB command is @samp{exec-file}.
+
+@subsubheading Example
+
+@smallexample
+(gdb)
 -file-exec-file /kwikemart/marge/ezannoni/TRUNK/mbx/hello.mbx
 ^done
-(gdb) 
+(gdb)
+@end smallexample
+
+
+@node -file-list-exec-sections
+@subsection The @code{-file-list-exec-sections} Command
+@findex -file-list-exec-sections
+
+@subsubheading Synopsis
+
+@example
+ -file-list-exec-sections
 @end example
 
-@section -file-list-exec-sections
 List the sections of the current executable file.
-@subsection GDB command
-info file (only part of it), gdb_load_info
-@subsection Example
+
+@subsubheading GDB Command
+
+The GDB command @samp{info file} shows, among the rest, the same
+information as this command.  @code{gdbtk} has a corresponding command
+@samp{gdb_load_info}.
+
+@subsubheading Example
 N.A.
 
-@section -file-list-exec-source-files
+
+@node -file-list-exec-source-files
+@subsection The @code{-file-list-exec-source-files} Command
+@findex -file-list-exec-source-files
+
+@subsubheading Synopsis
+
+@example
+ -file-list-exec-source-files
+@end example
+
 List the source files for the current executable.
-@subsection GDB command
-gdb_listfiles (gdbtk).
-@subsection Example
+
+@subsubheading GDB Command
+
+There's no GDB command which directly corresponds to this one.
+@code{gdbtk} has an analogous command @samp{gdb_listfiles}.
+
+@subsubheading Example
 N.A.
 
-@section -file-list-shared-libraries
+
+@node -file-list-shared-libraries
+@subsection The @code{-file-list-shared-libraries} Command
+@findex -file-list-shared-libraries
+
+@subsubheading Synopsis
+
+@example
+ -file-list-shared-libraries
+@end example
+
 List the shared libraries in the program.
-@subsection GDB command
-info shared
-@subsection Example
+
+@subsubheading GDB Command
+
+The corresponding GDB command os @samp{info shared}.
+
+@subsubheading Example
 N.A.
 
-@section -file-list-symbol-files
+
+@node -file-list-symbol-files
+@subsection The @code{-file-list-symbol-files} Command
+@findex -file-list-symbol-files
+
+@subsubheading Synopsis
+
+@example
+ -file-list-symbol-files
+@end example
+
 List symbol files.
-@subsection GDB command
-info file (part of it).
-@subsection Example
+
+@subsubheading GDB Command
+
+The corresponding GDB command is @samp{info file} (part of it).
+
+@subsubheading Example
 N.A.
 
-@section -file-symbol-file <file>
-Read symbol table info from the file specified as argument.  Used
-without arguments clears gdb's symbol table info.  No output is
-produced, except a completion notification.
-@subsection GDB command
-symbol-file <file>
 
-@subsection Example
+@node -file-symbol-file
+@subsection The @code{-file-symbol-file} Command
+@findex -file-symbol-file
+
+@subsubheading Synopsis
+
 @example
-(gdb) 
+ -file-symbol-file @var{file}
+@end example
+
+Read symbol table info from the specified @var{file} argument.  When
+used without arguments, clears GDB'S symbol table info.  No output is
+produced, except for a completion notification.
+
+@subsubheading GDB Command
+
+The corresponding GDB command is @samp{symbol-file}.
+
+@subsubheading Example
+
+@smallexample
+(gdb)
 -file-symbol-file /kwikemart/marge/ezannoni/TRUNK/mbx/hello.mbx
 ^done
-(gdb) 
-@end example
+(gdb)
+@end smallexample
 
-@c %%%%%%%%%%%%%%%%%%%%%%%%%%%% CHAPTER %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-@chapter Misc GDB commands
+@c %%%%%%%%%%%%%%%%%%%%%%%%%%%% SECTION %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+@node GDB/MI Misc Commands
+@section Misc GDB commands in @sc{gdb/mi}
 
-@c @section -gdb-complete
+@c @subsection -gdb-complete
 
-@section -gdb-exit
+@menu
+* -gdb-exit::
+* -gdb-set::
+* -gdb-show::
+* -gdb-version::
+@end menu
 
-Exit GDB immediately.
-@subsection GDB command
-Approximately corresponds to 'quit'.
+@node -gdb-exit
+@subsection The @code{-gdb-exit} Command
+@findex -gdb-exit
+
+@subsubheading Synopsis
 
-@subsection Example
 @example
-(gdb) 
+ -gdb-exit
+@end example
+
+Exit GDB immediately.
+
+@subsubheading GDB Command
+
+Approximately corresponds to @samp{quit}.
+
+@subsubheading Example
+
+@smallexample
+(gdb)
 -gdb-exit
+@end smallexample
+
+@node -gdb-set
+@subsection The @code{-gdb-set} Command
+@findex -gdb-set
+
+@subsubheading Synopsis
+
+@example
+ -gdb-set
 @end example
 
-@section -gdb-set
 Set an internal GDB variable.
-IS THIS A DOLLAR VARIABLE? OR SOMETHING LIKE ANNOTATE ?????
+@c IS THIS A DOLLAR VARIABLE? OR SOMETHING LIKE ANNOTATE ?????
 
-@subsection GDB command
-set
+@subsubheading GDB Command
 
-@subsection Example
-@example
+The corresponding GDB command is @samp{set}.
+
+@subsubheading Example
+
+@smallexample
 (gdb)
 -gdb-set $foo=3
 ^done
-(gdb) 
+(gdb)
+@end smallexample
+
+
+@node -gdb-show
+@subsection The @code{-gdb-show} Command
+@findex -gdb-show
+
+@subsubheading Synopsis
+
+@example
+ -gdb-show
 @end example
 
-@section -gdb-show
 Show the current value of a GDB variable.
 
-@subsection GDB command
-show
+@subsubsection GDB command
 
-@subsection Example
-@example
-(gdb) 
+The corresponding GDB command is @samp{show}.
+
+@subsubheading Example
+
+@smallexample
+(gdb)
 -gdb-show annotate
 ^done,value="0"
-(gdb) 
-@end example
+(gdb)
+@end smallexample
 
-@c @section -gdb-source
+@c @subsection -gdb-source
 
-@section -gdb-version
-Show version information for gdb. Used in testing mostly.
 
-@subsection GDB command
-No equivalent.
+@node -gdb-version
+@subsection The @code{-gdb-version} Command
+@findex -gdb-version
+
+@subsubheading Synopsis
 
-@subsection Example
 @example
+ -gdb-version
+@end example
+
+Show version information for GDB.  Used mostly in testing.
+
+@subsubheading GDB Command
+
+There's no equivalent GDB command.  GDB by default shows this
+information when you start an interactive session.
+
+@subsubheading Example
+
+@smallexample
 (gdb)
 -gdb-version
-~GNU gdb 4.18.1 HEADLESS
-~Copyright 1998 Free Software Foundation, Inc.
+~GNU gdb 5.2.1
+~Copyright 2000 Free Software Foundation, Inc.
 ~GDB is free software, covered by the GNU General Public License, and you are
 ~welcome to change it and/or distribute copies of it under certain conditions.
 ~Type "show copying" to see the conditions.
 ~There is absolutely no warranty for GDB.  Type "show warranty" for details.
 ~This GDB was configured as "--host=sparc-sun-solaris2.5.1 --target=ppc-eabi".
 ^done
-(gdb) 
-@end example
+(gdb)
+@end smallexample
 
-@c %%%%%%%%%%%%%%%%%%%%%%%%%%%% CHAPTER %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-@chapter Kod Commands
+@ignore
+@c %%%%%%%%%%%%%%%%%%%%%%%%%%%% SECTION %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+@node GDB/MI Kod Commands
+@section @sc{gdb/mi} Kod Commands
 
 The Kod commands are not implemented.
 
-@c @section -kod-info
+@c @subsection -kod-info
 
-@c @section -kod-list
+@c @subsection -kod-list
 
-@c @section -kod-list-object-types
+@c @subsection -kod-list-object-types
 
-@c @section -kod-show
+@c @subsection -kod-show
 
-@c %%%%%%%%%%%%%%%%%%%%%%%%%%%% CHAPTER %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-@chapter Memory Overlay Commands
+@c %%%%%%%%%%%%%%%%%%%%%%%%%%%% SECTION %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+@section Memory Overlay Commands
 
 the memory overlay commands not implemented.
 
-@c @section -overlay-auto
+@c @subsection -overlay-auto
 
-@c @section -overlay-list-mapping-state
+@c @subsection -overlay-list-mapping-state
 
-@c @section -overlay-list-overlays
+@c @subsection -overlay-list-overlays
 
-@c @section -overlay-map
+@c @subsection -overlay-map
 
-@c @section -overlay-off
+@c @subsection -overlay-off
 
-@c @section -overlay-on
+@c @subsection -overlay-on
 
-@c @section -overlay-unmap
+@c @subsection -overlay-unmap
 
-@c %%%%%%%%%%%%%%%%%%%%%%%%%%%% CHAPTER %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-@chapter Signal Handling Commands
+@c %%%%%%%%%%%%%%%%%%%%%%%%%%%% SECTION %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+@section Signal Handling Commands
 
 Signal handling commands are not implemented.
 
-@c @section -signal-handle
+@c @subsection -signal-handle
+
+@c @subsection -signal-list-handle-actions
 
-@c @section -signal-list-handle-actions
+@c @subsection -signal-list-signal-types
+@end ignore
 
-@c @section -signal-list-signal-types
 
-@c %%%%%%%%%%%%%%%%%%%%%%%%%%%% CHAPTER %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-@chapter Stack manipulation commands
+@c %%%%%%%%%%%%%%%%%%%%%%%%%%%% SECTION %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+@node GDB/MI Stack Manipulation
+@section Stack manipulation commands in @sc{gdb/mi}
+
+@menu
+* -stack-info-frame::
+* -stack-info-depth::
+* -stack-list-arguments::
+* -stack-list-frames::
+* -stack-list-locals::
+* -stack-select-frame::
+@end menu
+
+@node -stack-info-frame
+@subsection The @code{-stack-info-frame} Command
+@findex -stack-info-frame
+
+@subsubheading Synopsis
+
+@example
+ -stack-info-frame
+@end example
 
-@section -stack-info-frame
 Get info on the current frame.
-@subsection GDB command
-info frame or frame (w/o args).
-@subsection Example
+
+@subsubheading GDB Command
+
+The corresponding GDB command is @samp{info frame} or @samp{frame}
+(without arguments).
+
+@subsubheading Example
 N.A.
 
-@section -stack-info-depth [max-depth]
-Return the depth of the stack. If the integer argument <max-depth> is specified, do not
-count beyond max-depth frames. 
-@subsection GDB command
-No equivalent.
-@subsection Example
-For a stack with frame levels 0 through 11:
+@node -stack-info-depth
+@subsection The @code{-stack-info-depth} Command
+@findex -stack-info-depth
+
+@subsubheading Synopsis
+
 @example
-(gdb) 
+ -stack-info-depth [ @var{max-depth} ]
+@end example
+
+Return the depth of the stack.  If the integer argument @var{max-depth}
+is specified, do not count beyond @var{max-depth} frames.
+
+@subsubheading GDB Command
+
+There's no equivalent GDB command.
+
+@subsubheading Example
+
+For a stack with frame levels 0 through 11:
+
+@smallexample
+(gdb)
 -stack-info-depth
 ^done,depth="12"
-(gdb) 
+(gdb)
 -stack-info-depth 4
 ^done,depth="4"
-(gdb) 
+(gdb)
 -stack-info-depth 12
 ^done,depth="12"
-(gdb) 
+(gdb)
 -stack-info-depth 11
 ^done,depth="11"
-(gdb) 
+(gdb)
 -stack-info-depth 13
 ^done,depth="12"
-(gdb) 
-@end example
+(gdb)
+@end smallexample
+
+@node -stack-list-arguments
+@subsection The @code{-stack-list-arguments} Command
+@findex -stack-list-arguments
+
+@subsubheading Synopsis
 
-@section -stack-list-arguments <show-values> [ <low-frame> <high-frame> ]
-Display a list of the arguments for the frames between low-frame and
-high-frame (inclusive). If low-frame and high-frame are not provided, it
-will list the arguments for the whole stack. The show-values argument
-must have a value of 0 or 1. A value of 0 means that only the names of
-the arguments are listed, a value of 1 means that both names and values
-of the argumetns are printed.
-@subsection GDB command
-gdb_get_args (partially).
-@subsection Example
 @example
-(gdb) 
+ -stack-list-arguments @var{show-values}
+    [ @var{low-frame} @var{high-frame} ]
+@end example
+
+Display a list of the arguments for the frames between @var{low-frame}
+and @var{high-frame} (inclusive).  If @var{low-frame} and
+@var{high-frame} are not provided, list the arguments for the whole call
+stack.
+
+The @var{show-values} argument must have a value of 0 or 1.  A value of
+0 means that only the names of the arguments are listed, a value of 1
+means that both names and values of the argumetns are printed.
+
+@subsubheading GDB Command
+
+GDB does not have an equivalent command.  @code{gdbtk} has a
+@samp{gdb_get_args} command which partially overlaps with the
+functionality of @samp{-stack-list-arguments}.
+
+@subsubheading Example
+
+@smallexample
+(gdb)
 -stack-list-frames
 ^done,
 stack=@{
@@ -1715,7 +2676,7 @@
 file="../../../devo/gdb/testsuite/gdb.mi/basics.c",line="27"@},
 frame=@{level="4 ",addr="0x000107e0",func="main",
 file="../../../devo/gdb/testsuite/gdb.mi/basics.c",line="32"@}@}
-(gdb) 
+(gdb)
 -stack-list-arguments 0
 ^done,
 stack-args=@{
@@ -1724,12 +2685,13 @@
 frame=@{level="2",args=@{name="intarg",name="strarg"@}@},
 frame=@{level="3",args=@{name="intarg",name="strarg",name="fltarg"@}@},
 frame=@{level="4",args=@{@}@}@}
-(gdb) 
+(gdb)
 -stack-list-arguments 1
 ^done,
 stack-args=@{
 frame=@{level="0",args=@{@}@},
-frame=@{level="1",args=@{@{name="strarg",value="0x11940 \"A string argument.\""@}@}@},
+frame=@{level="1",
+ args=@{@{name="strarg",value="0x11940 \"A string argument.\""@}@}@},
 frame=@{level="2",args=@{
 @{name="intarg",value="2"@},
 @{name="strarg",value="0x11940 \"A string argument.\""@}@}@},
@@ -1738,249 +2700,536 @@
 @{name="strarg",value="0x11940 \"A string argument.\""@},
 @{name="fltarg",value="3.5"@}@}@},
 frame=@{level="4",args=@{@}@}@}
-(gdb) 
+(gdb)
 -stack-list-arguments 0 2 2
 ^done,stack-args=@{frame=@{level="2",args=@{name="intarg",name="strarg"@}@}@}
-(gdb) 
+(gdb)
 -stack-list-arguments 1 2 2
 ^done,stack-args=@{frame=@{level="2",
 args=@{@{name="intarg",value="2"@},
 @{name="strarg",value="0x11940 \"A string argument.\""@}@}@}@}
-(gdb) 
+(gdb)
+@end smallexample
+
+@c @subsection -stack-list-exception-handlers
+
+
+@node -stack-list-frames
+@subsection The @code{-stack-list-frames} Command
+@findex -stack-list-frames
+
+@subsubheading Synopsis
+
+@example
+ -stack-list-frames [ @var{low-frame} @var{high-frame} ]
 @end example
 
-@c @section -stack-list-exception-handlers
+List the frames currently on the stack.  For each frame it displays the
+following info:
 
-@section -stack-list-frames [ <low-frame> <high-frame> ]
-List the frames currently on the stack. For each frame it displays the following info:
 @table @samp
-@item <level>
+@item @var{level}
 The frame number, 0 being the topmost frame, i.e. the innermost function.
-@item <addr>
-Pc value for that frame.
-@item <func>
-Function name 
-@item <file>
-File name of the source fle where the function lives.
-@item <line>
-Line number corresponding to the pc.
+@item @var{addr}
+The @code{$pc} value for that frame.
+@item @var{func}
+Function name.
+@item @var{file}
+File name of the source file where the function lives.
+@item @var{line}
+Line number corresponding to the @code{$pc}.
 @end table
 
-If invoked without arguments, it prints a backtrace for the whole stack.
-If given two integer arguments it shows the frames whose levels are
-between the two arguments (inclusive). If the two arguments are equal,
-it shows the single frame at the corresponding level.
+If invoked without arguments, this command prints a backtrace for the
+whole stack.  If given two integer arguments, it shows the frames whose
+levels are between the two arguments (inclusive).  If the two arguments
+are equal, it shows the single frame at the corresponding level.
 
-@subsection GDB command
-backtrace or where
+@subsubheading GDB Command
 
-@subsection Example 1
-Whole stack backtrace.
+The corresponding GDB commands are @samp{backtrace} and @samp{where}.
 
-@example
+@subsubheading Example
+
+Full stack backtrace:
+
+@smallexample
 (gdb)
 -stack-list-frames
 ^done,stack=
-@{frame=@{level="0 ",addr="0x0001076c",func="foo",file="recursive2.c",line="11"@},
-frame=@{level="1 ",addr="0x000107a4",func="foo",file="recursive2.c",line="14"@},
-frame=@{level="2 ",addr="0x000107a4",func="foo",file="recursive2.c",line="14"@},
-frame=@{level="3 ",addr="0x000107a4",func="foo",file="recursive2.c",line="14"@},
-frame=@{level="4 ",addr="0x000107a4",func="foo",file="recursive2.c",line="14"@},
-frame=@{level="5 ",addr="0x000107a4",func="foo",file="recursive2.c",line="14"@},
-frame=@{level="6 ",addr="0x000107a4",func="foo",file="recursive2.c",line="14"@},
-frame=@{level="7 ",addr="0x000107a4",func="foo",file="recursive2.c",line="14"@},
-frame=@{level="8 ",addr="0x000107a4",func="foo",file="recursive2.c",line="14"@},
-frame=@{level="9 ",addr="0x000107a4",func="foo",file="recursive2.c",line="14"@},
-frame=@{level="10",addr="0x000107a4",func="foo",file="recursive2.c",line="14"@},
-frame=@{level="11",addr="0x00010738",func="main",file="recursive2.c",line="4"@}@}
+@{frame=@{level="0 ",addr="0x0001076c",func="foo",
+  file="recursive2.c",line="11"@},
+frame=@{level="1 ",addr="0x000107a4",func="foo",
+  file="recursive2.c",line="14"@},
+frame=@{level="2 ",addr="0x000107a4",func="foo",
+  file="recursive2.c",line="14"@},
+frame=@{level="3 ",addr="0x000107a4",func="foo",
+  file="recursive2.c",line="14"@},
+frame=@{level="4 ",addr="0x000107a4",func="foo",
+  file="recursive2.c",line="14"@},
+frame=@{level="5 ",addr="0x000107a4",func="foo",
+  file="recursive2.c",line="14"@},
+frame=@{level="6 ",addr="0x000107a4",func="foo",
+  file="recursive2.c",line="14"@},
+frame=@{level="7 ",addr="0x000107a4",func="foo",
+  file="recursive2.c",line="14"@},
+frame=@{level="8 ",addr="0x000107a4",func="foo",
+  file="recursive2.c",line="14"@},
+frame=@{level="9 ",addr="0x000107a4",func="foo",
+  file="recursive2.c",line="14"@},
+frame=@{level="10",addr="0x000107a4",func="foo",
+  file="recursive2.c",line="14"@},
+frame=@{level="11",addr="0x00010738",func="main",
+  file="recursive2.c",line="4"@}@}
+(gdb)
+@end smallexample
 
-(gdb) 
-@end example
+Show frames between low_frame and high_frame:
 
-@subsection Example 2
-Show frames between low_frame and high_frame.
-@example
-(gdb) 
+@smallexample
+(gdb)
 -stack-list-frames 3 5
 ^done,stack=
-@{frame=@{level="3 ",addr="0x000107a4",func="foo",file="recursive2.c",line="14"@},
-frame=@{level="4 ",addr="0x000107a4",func="foo",file="recursive2.c",line="14"@},
-frame=@{level="5 ",addr="0x000107a4",func="foo",file="recursive2.c",line="14"@}@}
-(gdb) 
-@end example
-@subsection Example 3
-Show one single frame.
-@example
-(gdb) 
+@{frame=@{level="3 ",addr="0x000107a4",func="foo",
+  file="recursive2.c",line="14"@},
+frame=@{level="4 ",addr="0x000107a4",func="foo",
+  file="recursive2.c",line="14"@},
+frame=@{level="5 ",addr="0x000107a4",func="foo",
+  file="recursive2.c",line="14"@}@}
+(gdb)
+@end smallexample
+
+Show a single frame:
+
+@smallexample
+(gdb)
 -stack-list-frames 3 3
 ^done,stack=
-@{frame=@{level="3 ",addr="0x000107a4",func="foo",file="recursive2.c",line="14"@}@}
-(gdb) 
+@{frame=@{level="3 ",addr="0x000107a4",func="foo",
+  file="recursive2.c",line="14"@}@}
+(gdb)
+@end smallexample
+
+
+@node -stack-list-locals
+@subsection The @code{-stack-list-locals} Command
+@findex -stack-list-locals
+
+@subsubheading Synopsis
+
+@example
+ -stack-list-locals @var{print-values}
 @end example
 
-@section -stack-list-locals <print-values>
-Display the local variables names for the current frame.  With an
-argument of 0 prints only the names of the variables, with argument of 1
-prints also the values.
-@subsection GDB command
-gdb_get_locals
+Display the local variables names for the current frame.  With an
+argument of 0 prints only the names of the variables, with argument of 1
+prints also their values.
+
+@subsubheading GDB Command
+
+@samp{info locals} in GDB, @samp{gdb_get_locals} in @code{gdbtk}.
+
+@subsubheading Example
+
+@smallexample
+(gdb)
+-stack-list-locals 0
+^done,locals=@{name="A",name="B",name="C"@}
+(gdb)
+-stack-list-locals 1
+^done,locals=@{@{name="A",value="1"@},@{name="B",value="2"@},
+  @{name="C",value="3"@}@}
+(gdb)
+@end smallexample
+
+
+@node -stack-select-frame
+@subsection The @code{-stack-select-frame} Command
+@findex -stack-select-frame
+
+@subsubheading Synopsis
+
+@example
+ -stack-select-frame @var{framenum}
+@end example
+
+Change the current frame.  Select a different frame @var{framenum} on
+the stack.
+
+@subsubheading GDB Command
+
+The corresponding GDB commands are @samp{frame}, @samp{up}, @samp{down},
+@samp{select-frame}, @samp{up-silent}, and @samp{down-silent}.
+
+@subsubheading Example
+
+@smallexample
+(gdb)
+-stack-select-frame 2
+^done
+(gdb)
+@end smallexample
+
+@c %%%%%%%%%%%%%%%%%%%%%%%%%%%% SECTION %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+@node GDB/MI Symbol Query
+@section @sc{gdb/mi} Symbol Query Commands
+
+
+@menu
+* -symbol-info-address::
+* -symbol-info-file::
+* -symbol-info-function::
+* -symbol-info-line::
+* -symbol-info-symbol::
+* -symbol-list-functions::
+* -symbol-list-types::
+* -symbol-list-variables::
+* -symbol-locate::
+* -symbol-type::
+@end menu
+
+@node -symbol-info-address
+@subsection The @code{-symbol-info-address} Command
+@findex -symbol-info-address
+
+@subsubheading Synopsis
+
+@example
+ -symbol-info-address @var{symbol}
+@end example
+
+Describe where @var{symbol} is stored.
+
+@subsubheading GDB Command
+
+the corresponding GDB command is @samp{info address}.
+
+@subsubheading Example
+N.A.
+
+
+@node -symbol-info-file
+@subsection The @code{-symbol-info-file} Command
+@findex -symbol-info-file
+
+@subsubheading Synopsis
+
+@example
+ -symbol-info-file
+@end example
+
+Show the file for the symbol.
+
+@subsubheading GDB Command
+
+There's no equivalent GDB command.  @code{gdbtk} has
+@samp{gdb_filnd_file}.
+
+@subsubheading Example
+N.A.
+
+
+@node -symbol-info-function
+@subsection The @code{-symbol-info-function} Command
+@findex -symbol-info-function
+
+@subsubheading Synopsis
+
+@example
+ -symbol-info-function
+@end example
+
+Show which function the symbol lives in.
+
+@subsubheading GDB Command
+
+@samp{gdb_get_function} in @code{gdbtk}.
+
+@subsubheading Example
+N.A.
+
+
+@node -symbol-info-line
+@subsection The @code{-symbol-info-line} Command
+@findex -symbol-info-line
+
+@subsubheading Synopsis
+
+@example
+ -symbol-info-line
+@end example
+
+Show the core addresses of the code for a source line.
+
+@subsubheading GDB Command
+
+The corresponding GDB comamnd is @samp{info line}.  @code{gdbtk} has the
+@samp{gdb_get_line} @samp{gdb_get_file} commands.
+
+@subsubheading Example
+N.A.
+
+
+@node -symbol-info-symbol
+@subsection The @code{-symbol-info-symbol} Command
+@findex -symbol-info-symbol
+
+@subsubheading Synopsis
+
+@example
+ -symbol-info-symbol @var{addr}
+@end example
+
+Describe what symbol is at location @var{addr}.
+
+@subsubheading GDB Command
+
+The corresponding GDB command is @samp{info symbol}.
+
+@subsubheading Example
+N.A.
+
+
+@node -symbol-list-functions
+@subsection The @code{-symbol-list-functions} Command
+@findex -symbol-list-functions
+
+@subsubheading Synopsis
+
+@example
+ -symbol-list-functions
+@end example
+
+List the functions in the executable.
+
+@subsubheading GDB Command
+
+@samp{info functions} in GDB, @samp{gdb_listfunc} @samp{gdb_search} in
+@code{gdbtk}.
+
+@subsubheading Example
+N.A.
+
+
+@node -symbol-list-types
+@subsection The @code{-symbol-list-types} Command
+@findex -symbol-list-types
+
+@subsubheading Synopsis
+
+@example
+ -symbol-list-types
+@end example
+
+List all the type names.
+
+@subsubheading GDB Command
+
+The corresponding commands are @samp{info types} in GDB,
+@samp{gdb_search} in @code{gdbtk}.
+
+@subsubheading Example
+N.A.
+
+
+@node -symbol-list-variables
+@subsection The @code{-symbol-list-variables} Command
+@findex -symbol-list-variables
+
+@subsubheading Synopsis
+
+@example
+ -symbol-list-variables
+@end example
+
+List all the global and static variable names.
+
+@subsubheading GDB Command
+
+@samp{info variables} in GDB, @samp{gdb_search} in @code{gdbtk}.
+
+@subsubheading Example
+N.A.
+
+
+@node -symbol-locate
+@subsection The @code{-symbol-locate} Command
+@findex -symbol-locate
+
+@subsubheading Synopsis
+
+@example
+ -symbol-locate
+@end example
+
+@subsubheading GDB Command
+
+@samp{gdb_loc} in @code{gdbtk}.
+
+@subsubheading Example
+N.A.
+
+
+@node -symbol-type
+@subsection The @code{-symbol-type} Command
+@findex -symbol-type
+
+@subsubheading Synopsis
+
+@example
+ -symbol-type @var{variable}
+@end example
+
+Show type of @var{variable}.
+
+@subsubheading GDB Command
+
+The corresponding GDB command is @samp{ptype}, @code{gdbtk} has
+@samp{gdb_obj_variable}.
+
+@subsubheading Example
+N.A.
+
+
+@c %%%%%%%%%%%%%%%%%%%%%%%%%%%% SECTION %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+@node GDB/MI Target Manipulation
+@section @sc{gdb/mi} Target Manipulation Commands
+
+
+@menu
+* -target-attach::
+* -target-compare-sections::
+* -target-detach::
+* -target-download::
+* -target-exec-status::
+* -target-list-available-targets::
+* -target-list-current-targets::
+* -target-list-parameters::
+* -target-select::
+@end menu
 
-@subsection Example
-@example
-(gdb) 
--stack-list-locals 0
-^done,locals=@{name="A",name="B",name="C"@}
-(gdb) 
--stack-list-locals 1
-^done,locals=@{@{name="A",value="1"@},@{name="B",value="2"@},@{name="C",value="3"@}@}
-(gdb) 
-@end example
+@node -target-attach
+@subsection The @code{-target-attach} Command
+@findex -target-attach
+
+@subsubheading Synopsis
 
-@section -stack-select-frame <framenum>
-Change the current frame. Select a different frame on the stack.
-@subsection GDB command
-frame (part), up, down
-AND/OR select-frame,
-up-silent, down-silent
-@subsection Example
 @example
-(gdb) 
--stack-select-frame 2
-^done
-(gdb) 
+ -target-attach @var{pid} | @var{file}
 @end example
 
-@c %%%%%%%%%%%%%%%%%%%%%%%%%%%% CHAPTER %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-@chapter Symbol query commands
-
-@section -symbol-info-address <symbol>
-Describe where <symbol> is stored.
-@subsection GDB command
-Info address
-@subsection Example
-N.A.
+Attach to a process @var{pid} or a file @var{file} outside of GDB.
 
-@section -symbol-info-file
-Show the file for the symbol [NOT SURE]
-@subsection GDB command
-gdb_filnd_file (gdbtk).
-@subsection Example
-N.A.
+@subsubheading GDB command
 
-@section -symbol-info-function
-Show which function the symbol lives in. [NOT SURE]
-@subsection GDB command
-gdb_get_function (gdbtk)
-@subsection Example
-N.A.
+The corresponding GDB command is @samp{attach}.
 
-@section -symbol-info-line
-Core addresses of the code for a source line.
-@subsection GDB command
-info line , gdb_get_line, gdb_get_file
-@subsection Example
+@subsubheading Example
 N.A.
 
-@section -symbol-info-symbol
-Describe what symbol is at location ADDR [NOT SURE]
-@subsection GDB command
-info symbol
-@subsection Example
-N.A.
 
-@section -symbol-list-functions
-List the functions in the executable.
-@subsection GDB command
-info functions, gdb_listfunc, gdb_search
-@subsection Example
-N.A.
+@node -target-compare-sections
+@subsection The @code{-target-compare-sections} Command
+@findex -target-compare-sections
 
-@section -symbol-list-types
-List all the type names.
-@subsection GDB command
-info types, gdb_search
-@subsection Example
-N.A.
+@subsubheading Synopsis
 
-@section -symbol-list-variables
-List all global and static variable names.
-@subsection GDB command
-Info variables, gdb_search
-@subsection Example
-N.A.
+@example
+ -target-compare-sections [ @var{section} ]
+@end example
 
-@section -symbol-locate
-@subsection GDB command
-gdb_loc (gdbtk)
-@subsection Example
-N.A.
+Compare data of section @var{section} on target to the exec file.
+Without the argument, all sections are compared.
 
-@section -symbol-type
-Show type of a variable.
-@subsection GDB command
-ptype, gdb_obj_variable
-@subsection Example
-N.A.
+@subsubheading GDB Command
 
-@c %%%%%%%%%%%%%%%%%%%%%%%%%%%% CHAPTER %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-@chapter Target manipulation commands
+The GDB equivalent is @samp{compare-sections}.
 
-@section -target-attach
-Attach to a process or file outside of GDB.
-@subsection GDB command
-attach
-@subsection Example
+@subsubheading Example
 N.A.
 
-@section -target-compare-sections
-Compare section data on target to the exec file.
-@subsection GDB command
-compare-sections
-@subsection Example
-N.A.
 
-@section -target-detach
-Disconnect from the remote target.
-No output.
+@node -target-detach
+@subsection The @code{-target-detach} Command
+@findex -target-detach
 
-@subsection GDB command
-detach
+@subsubheading Synopsis
 
-@subsection Example
 @example
-(gdb) 
+ -target-detach
+@end example
+
+Disconnect from the remote target.  There's no output.
+
+@subsubheading GDB command
+
+The corresponding GDB command is @samp{detach}.
+
+@subsubheading Example
+
+@smallexample
+(gdb)
 -target-detach
 ^done
-(gdb) 
+(gdb)
+@end smallexample
+
+
+@node -target-download
+@subsection The @code{-target-download} Command
+@findex -target-download
+
+@subsubheading Synopsis
+
+@example
+ -target-download
 @end example
 
-@section -target-download
 Loads the executable onto the remote target.
 It prints out an update message every half second, which includes the fields:
-@itemize @bullet
-@item section: The name of the section.
-@item section-sent: The size of what has been sent so far for that section.
-@item section-size: The size of the section.
-@item total-sent: The total size of what was sent so far (the current and the previous sections).
-@item total-size: The size of the overall executable to download.
-@end itemize
-Each message is sent as status record.
 
-In addition it prints the name and size of the sections, as they are
-downloaded. These messages include the fields:
-@itemize @bullet
-@item section: The name of the section.
-@item section-size: The size of the section.
-@item total-size: The size of the overall executable to download.
-@end itemize
-At the end a summary is printed.
-@subsection GDB command
-load
+@table @samp
+@item section
+The name of the section.
+@item section-sent
+The size of what has been sent so far for that section.
+@item section-size
+The size of the section.
+@item total-sent
+The total size of what was sent so far (the current and the previous sections).
+@item total-size
+The size of the overall executable to download.
+@end table
+
+@noindent
+Each message is sent as status record (@pxref{GDB/MI Output Syntax, ,
+@sc{gdb/mi} Output Syntax}).
+
+In addition, it prints the name and size of the sections, as they are
+downloaded.  These messages include the following fields:
 
-@subsection Example
-Note: Each status message appears on a single line. Here the messages
+@table @samp
+@item section
+The name of the section.
+@item section-size
+The size of the section.
+@item total-size
+The size of the overall executable to download.
+@end table
+
+@noindent
+At the end,  a summary is printed.
+
+@subsubheading GDB Command
+
+The corresponding GDB command is @samp{load}.
+
+@subsubheading Example
+
+Note: each status message appears on a single line.  Here the messages
 have been broken down, so they can fit into a page.
-@example
+
+@smallexample
 (gdb)
 -target-download
 +download,@{section=".text",section-size="6668",total-size="9880"@}
@@ -2026,216 +3275,375 @@
 +download,@{section=".data",section-sent="3072",section-size="3156",
 total-sent="9796",total-size="9880"@}
 ^done,address="0x10004",load-size="9880",transfer-rate="6586",write-rate="429"
-(gdb) 
+(gdb)
+@end smallexample
+
+
+@node -target-exec-status
+@subsection The @code{-target-exec-status} Command
+@findex -target-exec-status
+
+@subsubheading Synopsis
+
+@example
+ -target-exec-status
 @end example
 
-@section -target-exec-status
-Provide information on the state of the target. Whether it is running or not, for instance.
-@subsection GDB command
-No equivalent
-@subsection Example
+Provide information on the state of the target (whether it is running or
+not, for instance).
+
+@subsubheading GDB Command
+
+There's no equivalent GDB command.
+
+@subsubheading Example
 N.A.
 
-@section -target-list-available-targets
+
+@node -target-list-available-targets
+@subsection The @code{-target-list-available-targets} Command
+@findex -target-list-available-targets
+
+@subsubheading Synopsis
+
+@example
+ -target-list-available-targets
+@end example
+
 List the possible targets to connect to.
-@subsection GDB command
-help target
-@subsection Example
+
+@subsubheading GDB Command
+
+The corresponding GDB command is @samp{help target}.
+
+@subsubheading Example
 N.A.
 
-@section -target-list-current-targets
-What the current target is.
-@subsection GDB command
-info file (part of it).
-@subsection Example
+
+@node -target-list-current-targets
+@subsection The @code{-target-list-current-targets} Command
+@findex -target-list-current-targets
+
+@subsubheading Synopsis
+
+@example
+ -target-list-current-targets
+@end example
+
+Describe the current target.
+
+@subsubheading GDB Command
+
+The corresponding information is printed by @samp{info file} (among
+other things).
+
+@subsubheading Example
 N.A.
 
-@section -target-list-parameters
-????
-@subsection GDB command
-No equivalent
-@subsection Example
+
+@node -target-list-parameters
+@subsection The @code{-target-list-parameters} Command
+@findex -target-list-parameters
+
+@subsubheading Synopsis
+
+@example
+ -target-list-parameters
+@end example
+
+@c ????
+
+@subsubheading GDB Command
+
+No equivalent.
+
+@subsubheading Example
 N.A.
 
-@section -target-select
-Connect GDB to the remote target.
-It takes two args:
 
--target-select <type> <parameters>.
+@node -target-select
+@subsection The @code{-target-select} Command
+@findex -target-select
 
-Where:
+@subsubheading Synopsis
+
+@example
+ -target-select @var{type} @var{parameters ...}
+@end example
+
+Connect GDB to the remote target.  This command takes two args:
 
 @table @samp
-@item <type>
-The type of target, for instance async, remote, etc.
-@item <parameters>
-Device names, host names and the like.
+@item @var{type}
+The type of target, for instance @samp{async}, @samp{remote}, etc.
+@item @var{parameters}
+Device names, host names and the like.  @xref{Target Commands, ,
+Commands for managing targets}, for more details.
 @end table
+
 The output is a connection notification, followed by the address at
-which the target program is, in the following form: 
-^connected,addr="<address>",func="<function name>",args=@{<arg list>@}
+which the target program is, in the following form:
 
-@subsection GDB command
-target
+@smallexample
+^connected,addr="@var{address}",func="@var{function name}",
+  args=@{@var{arg list}@}
+@end smallexample
 
-@subsection Example
-@example
-(gdb) 
+@subsubheading GDB Command
+
+The corresponding GDB command is @samp{target}.
+
+@subsubheading Example
+
+@smallexample
+(gdb)
 -target-select async /dev/ttya
 ^connected,addr="0xfe00a300",func="??",args=@{@}
-(gdb) 
+(gdb)
+@end smallexample
+
+@c %%%%%%%%%%%%%%%%%%%%%%%%%%%% SECTION %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+@node GDB/MI Thread Commands
+@section @sc{gdb/mi} Thread Commands
+
+
+@menu
+* -thread-info::
+* -thread-list-all-threads::
+* -thread-list-ids::
+* -thread-select::
+@end menu
+
+@node -thread-info
+@subsection The @code{-thread-info} Command
+@findex -thread-info
+
+@subsubheading Synopsis
+
+@example
+ -thread-info
 @end example
 
-@c %%%%%%%%%%%%%%%%%%%%%%%%%%%% CHAPTER %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-@chapter Thread commands
+@subsubheading GDB command
+
+No equivalent.
+
+@subsubheading Example
+N.A.
+
+
+@node -thread-list-all-threads
+@subsection The @code{-thread-list-all-threads} Command
+@findex -thread-list-all-threads
+
+@subsubheading Synopsis
+
+@example
+ -thread-list-all-threads
+@end example
+
+@subsubheading GDB Command
+
+The equivalent GDB command is @samp{info threads}.
+
+@subsubheading Example
+N.A.
+
+
+@node -thread-list-ids
+@subsection The @code{-thread-list-ids} Command
+@findex -thread-list-ids
+
+@subsubheading Synopsis
 
-@section -thread-info
-@subsection GDB command
-@subsection Example
-
-@section -thread-list-all-threads
-@subsection GDB command
-@subsection Example
-
-@section -thread-list-ids
-Produces a list of the currently known gdb thread ids. At the end of the
-list it also prints the toal number of such threads.
-@subsection GDB command
-None equivalent. (Maybe part of info threads).
-@subsection Example 1
-No threads present, besides the main process.
 @example
-(gdb) 
+ -thread-list-ids
+@end example
+
+Produces a list of the currently known gdb thread ids.  At the end of the
+list it also prints the total number of such threads.
+
+@subsubheading GDB Command
+
+Part of @samp{info threads} supplies the same information.
+
+@subsubheading Example
+
+No threads present, besides the main process.
+
+@smallexample
+(gdb)
 -thread-list-ids
 ^done,thread-ids=@{@},number-of-threads="0"
-(gdb) 
-@end example
-@subsection Example 2
+(gdb)
+@end smallexample
+
+
 Several threads.
-@example
-(gdb) 
+
+@smallexample
+(gdb)
 -thread-list-ids
 ^done,thread-ids=@{thread-id="3",thread-id="2",thread-id="1"@},
 number-of-threads="3"
-(gdb) 
+(gdb)
+@end smallexample
+
+
+@node -thread-select
+@subsection The @code{-thread-select} Command
+@findex -thread-select
+
+@subsubheading Synopsis
+
+@example
+ -thread-select @var{threadnum}
 @end example
 
-@section -thread-select <threadnum>
-Make <threadnum> the current thread. It prints the number of the new
+Make @var{threadnum} the current thread.  It prints the number of the new
 current thread, and the topmost frame for that thread.
-@subsection GDB command
-thread
-@subsection Example
-@example
-(gdb) 
+
+@subsubheading GDB Command
+
+The corresponding GDB command is @samp{thread}.
+
+@subsubheading Example
+
+@smallexample
+(gdb)
 -exec-next
 ^running
-(gdb) 
+(gdb)
 *stopped,reason="end-stepping-range",thread-id="2",line="187",
 file="../../../devo/gdb/testsuite/gdb.threads/linux-dp.c"
-(gdb) 
+(gdb)
 -thread-list-ids
 ^done,
-thread-ids={thread-id="3",thread-id="2",thread-id="1"},
+thread-ids=@{thread-id="3",thread-id="2",thread-id="1"@},
 number-of-threads="3"
-(gdb) 
+(gdb)
 -thread-select 3
 ^done,new-thread-id="3",
 frame=@{level="0 ",func="vprintf",
 args=@{@{name="format",value="0x8048e9c \"%*s%c %d %c\\n\""@},
 @{name="arg",value="0x2"@}@},file="vprintf.c",line="31"@}
-(gdb) 
-@end example
+(gdb)
+@end smallexample
 
-@c %%%%%%%%%%%%%%%%%%%%%%%%%%%% CHAPTER %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-@chapter Tracepoint Commands
+@c %%%%%%%%%%%%%%%%%%%%%%%%%%%% SECTION %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+@node GDB/MI Tracepoint Commands
+@section @sc{gdb/mi} Tracepoint Commands
 
-The tracepoint commands are not implemented.
+The tracepoint commands are not yet implemented.
 
-@c @section -trace-actions
+@c @subsection -trace-actions
 
-@c @section -trace-delete
+@c @subsection -trace-delete
 
-@c @section -trace-disable
+@c @subsection -trace-disable
 
-@c @section -trace-dump
+@c @subsection -trace-dump
 
-@c @section -trace-enable
+@c @subsection -trace-enable
 
-@c @section -trace-exists
+@c @subsection -trace-exists
 
-@c @section -trace-find
+@c @subsection -trace-find
 
-@c @section -trace-frame-number
+@c @subsection -trace-frame-number
 
-@c @section -trace-info
+@c @subsection -trace-info
 
-@c @section -trace-insert
+@c @subsection -trace-insert
 
-@c @section -trace-list
+@c @subsection -trace-list
 
-@c @section -trace-pass-count
+@c @subsection -trace-pass-count
 
-@c @section -trace-save
+@c @subsection -trace-save
 
-@c @section -trace-start
+@c @subsection -trace-start
 
-@c @section -trace-stop
+@c @subsection -trace-stop
 
 
-@c %%%%%%%%%%%%%%%%%%%%%%%%%%%% CHAPTER %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-@chapter Variable Objects
+@c %%%%%%%%%%%%%%%%%%%%%%%%%%%% SECTION %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+@node GDB/MI Variable Objects
+@section @sc{gdb/mi} Variable Objects
+
+@menu
+* GDB/MI Varobj Motivation::
+* GDB/MI Varobj Intro::
+* GDB/MI Varobj Operations::
+* -var-create::
+* -var-delete::
+* -var-set-format::
+* -var-show-format::
+* -var-info-num-children::
+* -var-list-children::
+* -var-info-type::
+* -var-info-expression::
+* -var-show-attributes::
+* -var-evaluate-expression::
+* -var-assign::
+* -var-update::
+@end menu
 
-@section Motivation
+@node GDB/MI Varobj Motivation
+@subsection Motivation for Variable Objects in @sc{gdb/mi}
 
 For the implementation of a variable debugger window (locals, watched
 expressions, etc.), we are proposing the adaptation of the existent code
-used by Insight.
+used by @code{Insight}.
 
-The two main reason for that are:
+The two main reasons for that are:
 
 @enumerate 1
 @item
-It has been proven in practice (it is already on it's second generation)
+It has been proven in practice (it is already on its second generation).
+
 @item
 It will shorten development time (needless to say how important it is
-now)
+now).
 @end enumerate
 
 The original interface was designed to be used by Tcl code, so it was
-slightly changed so it can be used through flathead.  This document
+slightly changed so it could be used through flathead.  This document
 describes the flathead operations that will be available and gives some
-hints about its use.
+hints about their use.
 
 @emph{Note}: In addition to the set of operations described here, we
-expect the GUI implementation of a variable window to require, at least,
-the following operations:
-@itemize bullet
+expect the @sc{gui} implementation of a variable window to require, at
+least, the following operations:
+
+@itemize @bullet
 @item -gdb-show output-radix
 @item -stack-list-arguments
 @item -stack-list-locals
 @item -stack-select-frame
 @end itemize
 
-@section Introduction
+@node GDB/MI Varobj Intro
+@subsection Introduction to Variable Objects in @sc{gdb/mi}
 
+@cindex variable objects in @sc{gdb/mi}
 The basic idea behind variable objects is the creation of a named object
 to represent a variable, an expression, a memory location or even a CPU
 register.  For each object created, a set of operations is available for
 examining or changing its properties.
 
 Furthermore, complex data types, such as C structures, are represented
-in a tree format.  For instance, the struct type variable is the root
-and the children will represent the struct members.  If a children is
-itself of a complex type, it will also have children of its own.
-Appropriate language differences are handled for C, C++ and Java.
+in a tree format.  For instance, the @code{struct} type variable is the
+root and the children will represent the struct members.  If a child
+is itself of a complex type, it will also have children of its own.
+Appropriate language differences are handled for C, C@t{++} and Java.
 
 When returning the actual values of the objects, this facility allows
 for the individual selection of the display format used in the result
 creation.  It can be chosen among: binary, decimal, hexadecimal, octal
-and natural. Natural refers to the a default format automatically chosen
-based on the variable type (like decimal for int, hex for pointers,
-etc.).
+and natural.  Natural refers to the a default format automatically
+chosen based on the variable type (like decimal for an @code{int}, hex
+for pointers, etc.).
 
 The following is the complete set of flathead operations defined to
 access this functionality:
@@ -2270,193 +3678,335 @@
 @tab update the variable and its children
 @end multitable
 
-In the next section we describe each operation in detail and suggest how
-it can be used.
+In the next subsection we describe each operation in detail and suggest
+how it can be used.
+
+@node GDB/MI Varobj Operations
+@subsection Description And Use of Operations on Variable Objects
 
+@node -var-create
+@subsection The @code{-var-create} Command
+@findex -var-create
 
-@section Operations Description And Use
+@subsubheading Synopsis
 
-@subsection -var-create @{<name> | '-'@} @{<frame-addr> | '*'@} <expression>
+@example
+ -var-create @{@var{name} | "-"@}
+    @{@var{frame-addr} | "*"@} @var{expression}
+@end example
 
 This operation creates a variable object, which allows the monitoring of
 a variable, the result of an expression, a memory cell or a CPU
 register.
 
-The <name> parameter is the string by which the object can be
-referenced.  It must be unique.  If '-' is specified, the varobj system
-will generate a string "varNNNNNN" automatically.  It will be unique
-provided that one does not specify <name> on that format.  The command
-fails if a duplicate name is found.
+The @var{name} parameter is the string by which the object can be
+referenced.  It must be unique.  If @samp{-} is specified, the varobj
+system will generate a string "varNNNNNN'' automatically.  It will be
+unique provided that one does not specify @var{name} on that format.
+The command fails if a duplicate name is found.
 
 The frame under which the expression should be evaluated can be
-specified.  A '*' indicates that the current frame should be used.
+specified by @var{frame-addr}.  A @samp{*} indicates that the current
+frame should be used.
 
 Expression is any expression valid on the current language set (must not
-begin with '*') or: *<addr> - The address of a memory cell
-*<addr>-<addr> - An memory address range (TBD) $<regname> - A CPU
-register
-  
+begin with a @samp{*}), or one of the following:
+
+@itemize @bullet
+@item
+@samp{*@var{addr}}, where @var{addr} is the address of a memory cell
+
+@item
+@samp{*@var{addr}-@var{addr}} -- a memory address range (TBD)
+
+@item
+@samp{$@var{regname}} -- a CPU register name
+@end itemize
+
+@subsubheading Result
+
 This operation returns the name, number of children and the type of the
 object created.  Type is returned as a string as the ones generated by
-gdb CLI.
+the GDB CLI:
+
+@example
+ name="@var{name}",numchild="N",type="@var{type}"
+@end example
+
+
+@node -var-delete
+@subsection The @code{-var-delete} Command
+@findex -var-delete
+
+@subsubheading Synopsis
+
+@example
+ -var-delete @var{name}
+@end example
+
+Deletes a previously created variable object and all of its children.
+
+Returns an error if the object @var{name} is not found.
+
+
+@node -var-set-format
+@subsection The @code{-var-set-format} Command
+@findex -var-set-format
+
+@subsubheading Synopsis
+
+@example
+ -var-set-format @var{name} @var{format-spec}
+@end example
+
+Sets the output format for the value of the object @var{name} to be
+@var{format-spec}.
+
+The syntax for the @var{format-spec} is as follows:
+
+@example
+ @var{format-spec} @expansion{}
+ @{binary | decimal | hexadecimal | octal | natural@}
+@end example
+
+
+@node -var-show-format
+@subsection The @code{-var-show-format} Command
+@findex -var-show-format
+
+@subsubheading Synopsis
+
+@example
+ -var-show-format @var{name}
+@end example
+
+Returns the format used to display the value of the object @var{name}.
+
+@example
+ format @expansion{}
+ @var{format-spec}
+@end example
+
+
+@node -var-info-num-children
+@subsection The @code{-var-info-num-children} Command
+@findex -var-info-num-children
+
+@subsubheading Synopsis
+
+@example
+ -var-info-num-children @var{name}
+@end example
+
+Returns the number of children of a variable object @var{name}:
+
+@example
+ numchild=@var{n}
+@end example
 
-name="<name>",numchild="N",type="<type>"
 
-@subsection -var-delete <name>
+@node -var-list-children
+@subsection The @code{-var-list-children} Command
+@findex -var-list-children
 
-Deletes a previously created variable object and all of it's children.
+@subsubheading Synopsis
 
-Returns an error if the object <name> is not found.
+@example
+ -var-list-children @var{name}
+@end example
 
-@subsection -var-set-format <name> <format-spec>
+Returns a list of the children of the specified variable object:
 
-Sets the output format for the value of the object.
+@example
+ numchild=@var{n},children=@{@{name=@var{name},
+ numchild=@var{n},type=@var{type}@},(repeats N times)@}
+@end example
 
-<format-spec> = @{binary | decimal | hexadecimal | octal | natural@}
 
-@subsection -var-show-format <name>
+@node -var-info-type
+@subsection The @code{-var-info-type} Command
+@findex -var-info-type
 
-Returns the format used to display the value of the object.
+@subsubheading Synopsis
 
-format="<format-spec>"
+@example
+ -var-info-type @var{name}
+@end example
 
-@subsection -var-info-num-children <name>
+Returns the type of the specified variable @var{name}.  The type is
+returned as a string in the same format as it is output by the GDB CLI:
 
-Returns the number of children of a variable object.
+@example
+ type=@var{typename}
+@end example
 
-numchild="N"
 
-@subsection -var-list-children <name>
+@node -var-info-expression
+@subsection The @code{-var-info-expression} Command
+@findex -var-info-expression
 
-Returns a list of the children of the specified variable object.
+@subsubheading Synopsis
 
-numchild="N",children=@{@{name="<name>",numchild="N",type="<type>"@},(repeats N times)@}
+@example
+ -var-info-expression @var{name}
+@end example
 
-@subsection -var-info-type <name>
+Returns what is represented by the variable object @var{name}:
 
-Returns the type of the specified variable.  The type is returned as a
-string in the same format as it is output by gdb's CLI.
+@example
+ lang=@var{lang-spec},exp=@var{expression}
+@end example
 
-type="<type>"
+@noindent
+where @var{lang-spec} is @code{@{"C" | "C++" | "Java"@}}.
 
-@subsection -var-info-expression <name>
+@node -var-show-attributes
+@subsection The @code{-var-show-attributes} Command
+@findex -var-show-attributes
 
-Returns what is represented by the specified variable object.
+@subsubheading Synopsis
 
-lang="<lang-spec>",exp="<expression>"
+@example
+ -var-show-attributes @var{name}
+@end example
 
-where <lang-spec> = @{"C" | "C++" | "Java"@}
+List attributes of the specified variable object @var{name}:
 
-@subsection -var-show-attributes <name>
+@example
+ status=@var{attr} [ ( ,@var{attr} )* ]
+@end example
 
-List attributes of the specified variable object.
+@noindent
+where @var{attr} is @code{@{ @{ editable | noneditable @} | TBD @}}.
 
-status="<attr>[,<attr>]*"
+@node -var-evaluate-expression
+@subsection The @code{-var-evaluate-expression} Command
+@findex -var-evaluate-expression
 
-where <attr> = @{ @{ editable | noneditable @} | TBD @}
+@subsubheading Synopsis
 
-@subsection -var-evaluate-expression <name>
+@example
+ -var-evaluate-expression @var{name}
+@end example
 
 Evaluates the expression that is represented by the specified variable
 object and returns its value as a string in the current format specified
-for the object.
+for the object:
+
+@example
+ value=@var{value}
+@end example
+
+@node -var-assign
+@subsection The @code{-var-assign} Command
+@findex -var-assign
 
-value="<value>"
+@subsubheading Synopsis
 
-@subsection -var-assign <name> <expression>
+@example
+ -var-assign @var{name} @var{expression}
+@end example
 
-Assigns a new value for the variable object specified.  The object must
-be "editable".
+Assigns the value of @var{expression} to the variable object specified
+by @var{name}.  The object must be ``editable''.
 
-@subsection -var-update @{<name> | '*'@}
+@node -var-update
+@subsection The @code{-var-update} Command
+@findex -var-update
 
-Update the value of the variable object by evaluating its expression
-after fetching all the new values from memory or registers.  A '*'
-causes all existing variable objects to be updated.
+@subsubheading Synopsis
+
+@example
+ -var-update @{@var{name} | "*"@}
+@end example
 
+Update the value of the variable object @var{name} by evaluating its
+expression after fetching all the new values from memory or registers.
+A @samp{*} causes all existing variable objects to be updated.
 
+@ignore
 @c%%%%%%%%%%%%%%%%%%%%%%%%%%%% APPENDIX %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 @appendix Proposed v2.0 Output Syntax
 
 This appendix is not part of the MI specification.  It is provided as a
 discussion point.
 
-The output from GDB/MI consists of zero or more out-of-band records
+The output from @sc{gdb/mi} consists of zero or more out-of-band records
 optionally followed by a single result record.  The result record being
 for the most recent command input.  The sequence being terminated by
 ``(gdb)''.
 
-Asynchronous GDB/MI output is similar.
+Asynchronous @sc{gdb/mi} output is similar.
 
 Each output record directly associated with an input command is prefixed
-by the input commands @code{<token>}.
+by the input commands @code{@var{token}}.
 
 @table @code
-@item <output> @expansion{}
-@{ <out-of-band-record> @} [ <result-record> ] ``(gdb)'' <nl> 
+@item @var{output} @expansion{}
+@{ @var{out-of-band-record} @} @code{[} @var{result-record} @code{]} "(gdb)" @var{nl}
 
-@item <result-record> @expansion{}
-[ <token> ] ``^'' <result-class> @{ ``,'' <result> @} <nl>
+@item @var{result-record} @expansion{}
+@code{[} @var{token} @code{]} "^" @var{result-class} @{ "," @var{result} @} @var{nl}
 
-@item <out-of-band-record> @expansion{}
-<async-record> | <stream-record>
+@item @var{out-of-band-record} @expansion{}
+@var{async-record} @code{|} @var{stream-record}
 
-@item <async-record> @expansion{}
-<exec-async-output> | <status-async-output> | <notify-async-output>
+@item @var{async-record} @expansion{}
+@var{exec-async-output} @code{|} @var{status-async-output} @code{|} @var{notify-async-output}
 
-@item <exec-async-output> @expansion{}
-[ <token> ] ``*'' <async-output>
+@item @var{exec-async-output} @expansion{}
+@code{[} @var{token} @code{]} "*" @var{async-output}
 
-@item <status-async-output> @expansion{}
-[ <token> ] ``+'' <async-output>
+@item @var{status-async-output} @expansion{}
+@code{[} @var{token} @code{]} "+" @var{async-output}
 
-@item <notify-async-output> @expansion{}
-[ <token> ] ``='' <async-output>
+@item @var{notify-async-output} @expansion{}
+@code{[} @var{token} @code{]} "=" @var{async-output}
 
-@item <async-output> @expansion{}
-<async-class> @{ ``,'' <result> @} <nl> 
+@item @var{async-output} @expansion{}
+@var{async-class} @{ "," @var{result} @} @var{nl}
 
-@item <result-class> @expansion{} 
-``done'' | ``running'' | ``connected'' | ``error'' | ``exit''
+@item @var{result-class} @expansion{}
+"done" @code{|} "running" @code{|} "connected" @code{|} "error" @code{|} "exit"
 
-@item <async-class> @expansion{} 
-``stopped'' | @emph{others depending on need as still in development}
+@item @var{async-class} @expansion{}
+"stopped" @code{|} @emph{others depending on need as still in development}
 
-@item <result> @expansion{}
-<string> ``='' <value>
+@item @var{result} @expansion{}
+@var{string} "=" @var{value}
 
-@item <value> @expansion{}
-<c-string> | <tupple> | <list>
+@item @var{value} @expansion{}
+@var{c-string} @code{|} @var{tupple} @code{|} @var{list}
 
-@item <tupple> @expansion{}
-``@{@}'' | ``@{'' <result> @{ ``,'' <result> @} ``@}''
+@item @var{tupple} @expansion{}
+"@{@}" @code{|} "@{" @var{result} @{ "," @var{result} @} "@}"
 
-@item <list> @expansion{}
-``[]'' | ``['' <value> @{ ``,'' <value> @} ``]''
+@item @var{list} @expansion{}
+"@code{[]}" @code{|} "@code{[}" @var{value} @{ "," @var{value} @} "@code{]}"
 
-@item <string> @expansion{}
+@item @var{string} @expansion{}
 @emph{[-A-Za-z\.0-9_]*}
 
-@item <c-string> @expansion{}
+@item @var{c-string} @expansion{}
 @emph{See the input specification}
 
-@item <stream-record> @expansion{}
-<console-stream-output> | <target-stream-output> | <log-stream-output>
+@item @var{stream-record} @expansion{}
+@var{console-stream-output} @code{|} @var{target-stream-output} @code{|} @var{log-stream-output}
 
-@item <console-stream-output> @expansion{}
-``~'' <c-string>
+@item @var{console-stream-output} @expansion{}
+"~" @var{c-string}
 
-@item <target-stream-output> @expansion{}
-``@@'' <c-string>
+@item @var{target-stream-output} @expansion{}
+"@@" @var{c-string}
 
-@item <log-stream-output> @expansion{}
-``&'' <c-string>
+@item @var{log-stream-output} @expansion{}
+"&" @var{c-string}
 
-@item <nl> @expansion{}
-CR | CR-LF
+@item @var{nl} @expansion{}
+CR @code{|} CR-LF
 
-@item <token> @expansion{}
-``any sequence of digits''
+@item @var{token} @expansion{}
+"any sequence of digits"
 
 @end table
 
@@ -2464,7 +4014,7 @@
 
 @table @code
 
-@item <query>
+@item @var{query}
 This action is currently undefined.
 
 @end table
@@ -2477,42 +4027,44 @@
 All output sequences end in a single line containing a period.
 
 @item
-The @code{<token>} is from the corresponding request.  If an execution
+The @code{@var{token}} is from the corresponding request.  If an execution
 command is interrupted by the -exec-interrupt command, the token
 associated with the `*stopped' message is the one of the original
 execution command, not the one of the interrupt-command.
 
 @item
-<status-async-output> contains on-going status information about the progress
+@var{status-async-output} contains on-going status information about the progress
 of a slow operation.  It can be discarded. All status output is prefixed by
 the prefix `+'.
 
 @item
-<exec-async-output> contains asynchronous state change on the target
+@var{exec-async-output} contains asynchronous state change on the target
 (stopped, started, disappeared). All async output is prefixed by
 the prefix `*'.
 
 @item
-<notify-async-output> contains supplementary information that the client should
+@var{notify-async-output} contains supplementary information that the client should
 handle (new breakpoint information). All notify output is prefixed by
 the prefix `='.
 
 @item
-<console-stream-output> is output that should be displayed as is in the
+@var{console-stream-output} is output that should be displayed as is in the
 console.  It is the textual response to a CLI command. All the console
 output is prefixed by the prefix ``~''.
 
 @item
-<target-stream-output> is the output produced by the target program.
+@var{target-stream-output} is the output produced by the target program.
 All the target output is prefixed by the prefix ``@@''.
 
 @item
-<log-stream-output> is output text coming from GDB's internals, for
+@var{log-stream-output} is output text coming from GDB's internals, for
 instance messages that should be displayed as part of an error log.  All
 the log output is prefixed by the prefix ``&''.
 
 @end itemize
 
+@end ignore
+
 
 @c Local variables:
 @c change-log-default-name: "ChangeLog-mi"

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]