This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug translator/10054] improve $expr->foo->bar->zoo error messages


------- 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]