[Bug translator/5634] New: support pointer type punning
fche at redhat dot com
sourceware-bugzilla@sourceware.org
Thu Jan 17 18:32:00 GMT 2008
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.
More information about the Systemtap
mailing list