aboutsummaryrefslogtreecommitdiff
path: root/gdb/doc/agentexpr.texi
diff options
context:
space:
mode:
authorHui Zhu <teawater@gmail.com>2011-02-21 08:40:27 +0000
committerHui Zhu <teawater@gmail.com>2011-02-21 08:40:27 +0000
commitf994e27a0ba0cb8488b78ba35a45795976311bb0 (patch)
tree1b4a2b2c8adeeaf51790aa980543378e39e50e3c /gdb/doc/agentexpr.texi
parentf9c6ff7236667717e278b079ead15e09434791fc (diff)
downloadgdb-f994e27a0ba0cb8488b78ba35a45795976311bb0.zip
gdb-f994e27a0ba0cb8488b78ba35a45795976311bb0.tar.gz
gdb-f994e27a0ba0cb8488b78ba35a45795976311bb0.tar.bz2
2011-02-21 Hui Zhu <teawater@gmail.com>
* agentexpr.texi (Bytecode Descriptions): Add printf. * gdb.texinfo (Tracepoint Action Lists): Add printf.
Diffstat (limited to 'gdb/doc/agentexpr.texi')
-rw-r--r--gdb/doc/agentexpr.texi7
1 files changed, 7 insertions, 0 deletions
diff --git a/gdb/doc/agentexpr.texi b/gdb/doc/agentexpr.texi
index f2d51b7..5a360df 100644
--- a/gdb/doc/agentexpr.texi
+++ b/gdb/doc/agentexpr.texi
@@ -489,6 +489,13 @@ named @code{trace_quick16}, for consistency.
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