From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30799 invoked by alias); 27 Sep 2012 08:07:11 -0000 Received: (qmail 30372 invoked by uid 48); 27 Sep 2012 08:06:35 -0000 From: "mjw at redhat dot com" To: systemtap@sourceware.org Subject: [Bug translator/13486] pass-4 error (frame_base undeclared), inlined function argument Date: Thu, 27 Sep 2012 08:07:00 -0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: systemtap X-Bugzilla-Component: translator X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mjw at redhat dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: systemtap at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: CC Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 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: 2012-q3/txt/msg00344.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=13486 Mark Wielaard changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mjw at redhat dot com --- Comment #3 from Mark Wielaard 2012-09-27 08:06:34 UTC --- Just because I was curious what was going on. In the case you found (the ht variable inside an inlined function seen_triple in df), the DW_AT_location is expressed as an GNU_implicit_pointer. The GNU_implicit_pointer is expressed as the location of another DIE (plus some offset). And in this case that DIE has as location fbreg -240. So, that then does need the frame_base. I think your patch handles this correctly. But you could consider moving the check up into the for (l = loc; l != NULL; l = l->next) loop just above it that checks the types. You can probably just check whether to output the frame_base at the same time instead of looping through the location chain twice. Although the chains aren't very deep, so it probably doesn't matter. -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.