This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug translator/10913] bad/misleading translator error message
- From: "jistone at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sources dot redhat dot com
- Date: 6 Nov 2009 20:11:56 -0000
- Subject: [Bug translator/10913] bad/misleading translator error message
- References: <20091106193626.10913.dsmith@redhat.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From jistone at redhat dot com 2009-11-06 20:11 -------
The problem is in the tokenizer -- it treats an entire "%{...%}" as one big
tok_embedded token. If it doesn't find the closing, you instead get a tok_junk
"%{...EOF".
You get similar weirdness from unterminated strings:
$ stap -ve 'global s = "foo'
parse error: expected literal string or number
saw: junk 'foo' at <input>:1:12
source: global s = "foo
^
IMO, there no use for the tokenizer to generate tok_junk -- it should just throw
an error right away indicating *why* it is junk...
--
http://sourceware.org/bugzilla/show_bug.cgi?id=10913
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.