Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH v2] tracepoint: add new trace command "printf" and agent expression "printf" [3] doc
@ 2011-02-24  8:56 Hui Zhu
  2011-02-24  8:57 ` Joel Brobecker
  0 siblings, 1 reply; 11+ messages in thread
From: Hui Zhu @ 2011-02-24  8:56 UTC (permalink / raw)
  To: gdb-patches ml
  Cc: Doug Evans, Michael Snyder, Stan Shebs, Tom Tromey, Eli Zaretskii

[-- Attachment #1: Type: text/plain, Size: 189 bytes --]

This patch is for doc.

Thanks,
Hui

2011-02-24  Hui Zhu  <teawater@gmail.com>

	* agentexpr.texi (Bytecode Descriptions): Add printf.
	* gdb.texinfo (Tracepoint Action Lists): Add printf.

[-- Attachment #2: tp_print_doc.txt --]
[-- Type: text/plain, Size: 1481 bytes --]

---
 doc/agentexpr.texi |    7 +++++++
 doc/gdb.texinfo    |    6 ++++++
 2 files changed, 13 insertions(+)

--- a/doc/agentexpr.texi
+++ b/doc/agentexpr.texi
@@ -489,6 +489,13 @@ named @code{trace_quick16}, for consiste
 Record the value of trace state variable number @var{n} in the trace
 buffer.  The handling of @var{n} is as described for @code{getv}.
 
+@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.
+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.
+
 @item @code{end} (0x27): @result{}
 Stop executing bytecode; the result should be the top element of the
 stack.  If the purpose of the expression was to compute an lvalue or a
--- a/doc/gdb.texinfo
+++ b/doc/gdb.texinfo
@@ -10242,6 +10242,12 @@ state variables (@pxref{Trace State Vari
 values to the trace buffer, as would be the case if the @code{collect}
 action were used.
 
+@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.
+The command format is with simple @code{printf} (@pxref{Output, printf}).
+
 @kindex while-stepping @r{(tracepoints)}
 @item while-stepping @var{n}
 Perform @var{n} single-step instruction traces after the tracepoint,

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2011-08-11  6:56 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-24  8:56 [PATCH v2] tracepoint: add new trace command "printf" and agent expression "printf" [3] doc Hui Zhu
2011-02-24  8:57 ` Joel Brobecker
2011-02-24  9:03   ` Hui Zhu
2011-06-07  6:33     ` Hui Zhu
2011-06-07  7:10       ` Eli Zaretskii
2011-06-15  5:27         ` Hui Zhu
2011-06-15 17:27           ` Eli Zaretskii
2011-06-24  3:22             ` Hui Zhu
2011-06-24  6:58               ` Eli Zaretskii
2011-06-24  7:12                 ` Hui Zhu
2011-08-11  6:56                   ` Hui Zhu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox