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/5634] New: support pointer type punning


It would be helpful to have a syntax for pointer type casting,
for times when the static type of the pointer does not match
the dynamic (actual) type.  Currently, this requires embedded-C
code to get around.

Perhaps like this:
    $ptr("struct tcp_socket")->tcp_socket_field

A more C-like syntax would be:
 ((struct tcp_socket*)$ptr)->tcp_socket_field
but parsing that is much more complicated.

-- 
           Summary: support pointer type punning
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: translator
        AssignedTo: systemtap at sources dot redhat dot com
        ReportedBy: fche at redhat dot com


http://sourceware.org/bugzilla/show_bug.cgi?id=5634

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