This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug translator/13186] systemtap does not correctly point out offending structure when accidentally dereferencing a structure as a string
- From: "jistone at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sourceware dot org
- Date: Tue, 13 Sep 2011 19:53:16 +0000
- Subject: [Bug translator/13186] systemtap does not correctly point out offending structure when accidentally dereferencing a structure as a string
- Auto-submitted: auto-generated
- References: <bug-13186-6586@http.sourceware.org/bugzilla/>
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.