From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10879 invoked by alias); 12 Nov 2009 01:27:26 -0000 Received: (qmail 10769 invoked by uid 48); 12 Nov 2009 01:27:09 -0000 Date: Thu, 12 Nov 2009 01:27:00 -0000 Message-ID: <20091112012709.10768.qmail@sourceware.org> From: "jistone at redhat dot com" To: systemtap@sources.redhat.com In-Reply-To: <20080308010658.5899.jkenisto@us.ibm.com> References: <20080308010658.5899.jkenisto@us.ibm.com> Reply-To: sourceware-bugzilla@sourceware.org Subject: [Bug translator/5899] $ptr->member in return probe 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: 2009-q4/txt/msg00498.txt.bz2 ------- Additional Comments From jistone at redhat dot com 2009-11-12 01:27 ------- (In reply to comment #4) > probe FOO.return { > println(@cast(@entry($param),"struct foo")->field)) > } If we decide to make $param->field implicitly work this way, then we can use the same internal mechanisms as @cast without requiring the user to know the type. We can translate the pointer alone, and then pass that type die to dwflpp::literal_stmt_for_pointer to read the rest, so we get two generated functions: $param->field ==> _dwarf_tvar_get_cast_1(@entry(_dwarf_tvar_get_param_0())) The @entry processing can go from here to save the expression as needed. -- What |Removed |Added ---------------------------------------------------------------------------- BugsThisDependsOn| |10943 http://sourceware.org/bugzilla/show_bug.cgi?id=5899 ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.