[Bug translator/5219] New: printd and printdln broken
hunt at redhat dot com
sourceware-bugzilla@sourceware.org
Thu Oct 25 18:41:00 GMT 2007
printd[ln] cannot take a string variable as the first argument.
probe begin {
b = ","
printd(b,"foo","bar")
println("")
exit()
}
stap a.stp
parse error: expected string
saw: identifier 'b' at a.stp:6:9
parse error: expected statement
saw: a.stp EOF
2 parse error(s).
Pass 1: parse failed. Try again with more '-v' (verbose) options.
Also printd[ln] cannot handle case where there is only one values to print:
probe begin {
printd(",","foo")
println("")
exit()
}
stap a.stp
parse error: expected ','
saw: operator ')' at a.stp:5:18
parse error: expected statement
saw: a.stp EOF
2 parse error(s).
Pass 1: parse failed. Try again with more '-v' (verbose) options.
I have checked in testsuite/systemtap.printf/printd.stp and
estsuite/systemtap.printf/printdln.stp to test all the edge cases that I think
should work. They do not currently coimpile.
--
Summary: printd and printdln broken
Product: systemtap
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: translator
AssignedTo: systemtap at sources dot redhat dot com
ReportedBy: hunt at redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=5219
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the Systemtap
mailing list