[Bug translator/13186] systemtap does not correctly point out offending structure when accidentally dereferencing a structure as a string
jistone at redhat dot com
sourceware-bugzilla@sourceware.org
Tue Sep 13 19:53:00 GMT 2011
http://sourceware.org/bugzilla/show_bug.cgi?id=13186
--- Comment #2 from Josh Stone <jistone at redhat dot com> 2011-09-13 19:53:16 UTC ---
(In reply to comment #0)
> semantic error: 'struct qstr' is being accessed instead of a member: identifier
> '$kobj' at /tmp/sysfs.stp:14:53
> source: printf("%s :
> %s\n",thread_indent(1),kernel_string($kobj->dentry->d_name))
> ^
>
> Here d_name is a structure of type qstr; which is the offending dereference
> however the translator points to $kobj instead of d_name.
The message is generated by dwflpp::translate_final_fetch_or_store, using the
token of the overall expression (e->tok). It should be possible to use the
token of the last dereferencing e->component instead, falling back to e->tok
only if there are no components.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the Systemtap
mailing list