Index: gdbmi.texinfo =================================================================== RCS file: /cvs/src/src/gdb/mi/gdbmi.texinfo,v retrieving revision 1.30 diff -u -r1.30 gdbmi.texinfo --- gdbmi.texinfo 11 Nov 2002 17:09:50 -0000 1.30 +++ gdbmi.texinfo 11 Nov 2002 23:19:50 -0000 @@ -185,11 +185,15 @@ finishes. @item -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). +Some @sc{mi} commands accept both options and parameters; +options occur first, followed by parameters. Since options +always start with a @samp{-} (dash), +the special @samp{--} delimeter is provided to optionally +signal the end of the option list. This would be used in the case +where a parameter needed to start with @samp{-}. +For @sc{mi} commands that accept no arguments or that +require parameters but not options, the @samp{--} sequence should +not be used. @end itemize Pragmatics: @@ -1093,7 +1097,7 @@ -data-disassemble [ -s @var{start-addr} -e @var{end-addr} ] | [ -f @var{filename} -l @var{linenum} [ -n @var{lines} ] ] - -- @var{mode} + @var{mode} @end example @noindent @@ -1166,7 +1170,7 @@ @code{main}. @smallexample --data-disassemble -f basics.c -l 32 -- 0 +-data-disassemble -f basics.c -l 32 0 ^done,asm_insns=[ @{address="0x000107bc",func-name="main",offset="0", inst="save %sp, -112, %sp"@},