On Tue, Jun 7, 2011 at 15:09, Eli Zaretskii wrote: >> From: Hui Zhu >> Date: Tue, 7 Jun 2011 14:32:55 +0800 >> Cc: Joel Brobecker , Doug Evans , >>       Stan Shebs , Tom Tromey , Eli Zaretskii >> >> +@item @code{printf} (0x31) @var{n} @var{template}: @result{} >> +Print the values in the stack under the control of the string template. >> +The end of @var{template} is 0x00. > > I don't understand the last sentence.  Do you mean to say that the > template is a null-terminated string? > >> +If @var{n} is 0, just output the string template. >> +If @var{n} is 1, pop a value from the stack and print it under the control >> +of the string template. > > Does this support only a single value?  That's not what one would > normally expect from something called "printf".  If it can pop more > than one value, that should be documented. > >> +@kindex printf >> +@item printf @var{template}, @var{expressions}@dots{} >> +Print the values of one or more @var{expressions} under the control of >> +the string @var{template} in @code{gdbserver} part. > > What do you mean by "in @code{gdbserver} part"? > >> +The command format is with simple @code{printf} (@pxref{Output, printf}). > > This sentence's intent is not clear to me.  Can you explain what were > you trying to say? > > Thanks. > Faint, I send an old patch. So sorry about that. That attchment is the right patch. Thanks, Hui