From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30683 invoked by alias); 17 Jan 2008 18:32:18 -0000 Received: (qmail 30487 invoked by uid 48); 17 Jan 2008 18:31:33 -0000 Date: Thu, 17 Jan 2008 18:32:00 -0000 From: "fche at redhat dot com" To: systemtap@sources.redhat.com Message-ID: <20080117183129.5634.fche@redhat.com> Reply-To: sourceware-bugzilla@sourceware.org Subject: [Bug translator/5634] New: support pointer type punning X-Bugzilla-Reason: AssignedTo Mailing-List: contact systemtap-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: systemtap-owner@sourceware.org X-SW-Source: 2008-q1/txt/msg00088.txt.bz2 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.