This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug translator/5111] New: translator silently ignores "then" instead of "{"
- From: "dcnltc at us dot ibm dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sources dot redhat dot com
- Date: 4 Oct 2007 23:15:09 -0000
- Subject: [Bug translator/5111] New: translator silently ignores "then" instead of "{"
- Reply-to: sourceware-bugzilla at sourceware dot org
In the following tapscript I unwittingly inserted "then" in an if stmt. The
translator accepted this without complaint, but basically ignored the if.
I was expecting a syntax error. Is this a legal if stmt?
function func:long ()
%{
THIS->__retvalue = -1;
%}
probe begin
{
if (func() < 0) then
print("why no syntax error\n")
printf("after if stmt\n")
}
--
Summary: translator silently ignores "then" instead of "{"
Product: systemtap
Version: unspecified
Status: NEW
Severity: normal
Priority: P3
Component: translator
AssignedTo: systemtap at sources dot redhat dot com
ReportedBy: dcnltc at us dot ibm dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=5111
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.