This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug translator/11556] @cast() with array indexing on pointers
- From: "jistone at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sources dot redhat dot com
- Date: 28 Apr 2010 21:54:49 -0000
- Subject: [Bug translator/11556] @cast() with array indexing on pointers
- References: <20100428211110.11556.dsmith@redhat.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From jistone at redhat dot com 2010-04-28 21:54 -------
(In reply to comment #0)
> So, I'd like @cast to be able to do array indexing on pointers.
Just to be clear, array indexing only fails as the first component.
BAD: @cast(ptr, "task_struct")[42]->tgid
OK: @cast(ptr, "task_struct")->parent[42]->tgid
I expect that tracepoint variables also have this problem, as they go through
the same code path, namely dwflpp::literal_stmt_for_pointer().
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|systemtap at sources dot |jistone at redhat dot com
|redhat dot com |
Status|NEW |ASSIGNED
http://sourceware.org/bugzilla/show_bug.cgi?id=11556
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.