Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [doc/tracepoint] Add a note for assigning values of inferior to trace state variables
@ 2011-09-16  9:07 Hui Zhu
  2011-09-16  9:48 ` Eli Zaretskii
  2011-09-16 12:26 ` Pedro Alves
  0 siblings, 2 replies; 6+ messages in thread
From: Hui Zhu @ 2011-09-16  9:07 UTC (permalink / raw)
  To: gdb-patches ml; +Cc: Eli Zaretskii

Hi,

I talk about a bug about assigning values of inferior to trace state variables
http://sources.redhat.com/ml/gdb/2011-07/msg00009.html

this issue can be handle by convert value to (uint64_t), for example:
teval $tmp=(uint64_t)a

So I make a patch to update the doc.

Please help me review it.

Thanks,
Hui

2011-09-16  Hui Zhu  <teawater@gmail.com>

	* gdb.texinfo (Tracepoint Action Lists): Add a note for assigning
	values of inferior to trace state variables.

---
 doc/gdb.texinfo |    6 ++++++
 1 file changed, 6 insertions(+)

--- a/doc/gdb.texinfo
+++ b/doc/gdb.texinfo
@@ -10321,6 +10321,12 @@ are discarded, so this is mainly useful
 state variables (@pxref{Trace State Variables}) without adding those
 values to the trace buffer, as would be the case if the @code{collect}
 action were used.
+Please note that if you want assigning values of inferior to trace state
+variables, please convert it to unsigned 64bit first.  For example:
+
+@smallexample
+>teval $c=(uint64_t)jiffies_64
+@end smallexample

 @kindex while-stepping @r{(tracepoints)}
 @item while-stepping @var{n}


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

end of thread, other threads:[~2011-09-21 17:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-16  9:07 [doc/tracepoint] Add a note for assigning values of inferior to trace state variables Hui Zhu
2011-09-16  9:48 ` Eli Zaretskii
2011-09-16 20:37   ` Joel Brobecker
2011-09-17 14:40     ` Hui Zhu
2011-09-21 17:01       ` Pedro Alves
2011-09-16 12:26 ` Pedro Alves

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