This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug translator/10054] improve $expr->foo->bar->zoo error messages
- From: "wenji dot huang at oracle dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sources dot redhat dot com
- Date: 16 Apr 2009 09:41:41 -0000
- Subject: [Bug translator/10054] improve $expr->foo->bar->zoo error messages
- References: <20090410173925.10054.fche@redhat.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From wenji dot huang at oracle dot com 2009-04-16 09:41 -------
Created an attachment (id=3887)
--> (http://sourceware.org/bugzilla/attachment.cgi?id=3887&action=view)
first stage patch
With the patch, the correct local variable name will be focused instead of
top one.
stap -e 'probe kernel.function("vfs_read") {printf(" 0x%x\n",
$file->f_op->foo)}'
semantic error: unable to find local 'foo' near pc 0xc015bf6d (alternatives:
owner ... ) : identifier '$file' at <input>:1:54
source: probe kernel.function("vfs_read") {printf(" 0x%x\n",
$file->f_op->foo)}
^
'foo' replaces the previous 'file'. And the remains parts are "identifier
$file" and the position of "^". Seems not easy to change them since they are
from e->tok.
--
http://sourceware.org/bugzilla/show_bug.cgi?id=10054
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.