This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug translator/5634] New: support pointer type punning
- From: "fche at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sources dot redhat dot com
- Date: 17 Jan 2008 18:31:33 -0000
- Subject: [Bug translator/5634] New: support pointer type punning
- Reply-to: sourceware-bugzilla at sourceware dot org
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.