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/13186] systemtap does not correctly point out offending structure when accidentally dereferencing a structure as a string


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.


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