From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17515 invoked by alias); 16 Apr 2009 09:41:51 -0000 Received: (qmail 17467 invoked by uid 48); 16 Apr 2009 09:41:41 -0000 Date: Thu, 16 Apr 2009 09:41:00 -0000 Message-ID: <20090416094141.17466.qmail@sourceware.org> From: "wenji dot huang at oracle dot com" To: systemtap@sources.redhat.com In-Reply-To: <20090410173925.10054.fche@redhat.com> References: <20090410173925.10054.fche@redhat.com> Reply-To: sourceware-bugzilla@sourceware.org Subject: [Bug translator/10054] improve $expr->foo->bar->zoo error messages 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-q2/txt/msg00251.txt.bz2 ------- Additional Comments From wenji dot huang at oracle dot com 2009-04-16 09:41 ------- Created an attachment (id=3887) --> (http://sourceware.org/bugzilla/attachment.cgi?id=3887&action=view) first stage patch With the patch, the correct local variable name will be focused instead of top one. stap -e 'probe kernel.function("vfs_read") {printf(" 0x%x\n", $file->f_op->foo)}' semantic error: unable to find local 'foo' near pc 0xc015bf6d (alternatives: owner ... ) : identifier '$file' at :1:54 source: probe kernel.function("vfs_read") {printf(" 0x%x\n", $file->f_op->foo)} ^ 'foo' replaces the previous 'file'. And the remains parts are "identifier $file" and the position of "^". Seems not easy to change them since they are from e->tok. -- http://sourceware.org/bugzilla/show_bug.cgi?id=10054 ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.