This is the mail archive of the gdb-patches@sourceware.org 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]
Other format: [Raw text]

[RFC, doc] fix document error on the grammar of GDB/MI output format syntax


Hi, I noticed that GDB has a "new line" in the end of "out-of-band-record".
But the document does not correctly describe this. See here:
https://sourceware.org/gdb/current/onlinedocs/gdb/GDB_002fMI-Output-Syntax.html#GDB_002fMI-Output-Syntax
Some discussion has already in GDB maillist, see: https://sourceware.org/ml/gdb/2013-12/msg00058.html

As Joel suggested there that the change should be both reviewed by Eli and some GDB maintainer.

The change log could be: Fix syntax description error about GDB/MI "out-of-band-record", there should be a "new line" in end.

Thanks.

Yuanhui Zhang


 gdb/doc/gdb.texinfo | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
index b7551c2..a8b888c 100644
--- a/gdb/doc/gdb.texinfo
+++ b/gdb/doc/gdb.texinfo
@@ -29160,7 +29160,7 @@ corresponding output for that command will also be prefixed by that same
 @code{ [ @var{token} ] "^" @var{result-class} ( "," @var{result} )* @var{nl}}
 
 @item @var{out-of-band-record} @expansion{}
-@code{@var{async-record} | @var{stream-record}}
+@code{@var{async-record} @var{nl} | @var{stream-record} @var{nl}}
 
 @item @var{async-record} @expansion{}
 @code{@var{exec-async-output} | @var{status-async-output} | @var{notify-async-output}}


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