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/11556] @cast() with array indexing on pointers


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


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