From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 46943 invoked by alias); 30 Jun 2016 15:11:32 -0000 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 Received: (qmail 46855 invoked by uid 48); 30 Jun 2016 15:11:19 -0000 From: "mcermak at redhat dot com" To: systemtap@sourceware.org Subject: [Bug translator/20307] 'private' on tapset global arrays causes errors Date: Thu, 30 Jun 2016 15:11: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-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mcermak at redhat dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: systemtap at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2016-q2/txt/msg00319.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=3D20307 Martin Cermak changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mcermak at redhat dot com --- Comment #5 from Martin Cermak --- (In reply to Frank Ch. Eigler from comment #4) > probable fix: >=20 > diff --git a/elaborate.cxx b/elaborate.cxx > index 4a375d98098b..740e30c4bb74 100644 > --- a/elaborate.cxx > +++ b/elaborate.cxx > @@ -2732,7 +2732,8 @@ symresolution_info::find_var (interned_string name, > int arity, const token* tok) > for (unsigned j=3D0; jglobals.size(); j++) > { > vardecl* g =3D f->globals[j]; > - if (g->name =3D=3D gname) > + if ((g->name =3D=3D gname) || > + (g->name =3D=3D pname)) // private global within tapset > { > g->set_arity (arity, tok); This seems to solve the problem. Full regression testing passed. --=20 You are receiving this mail because: You are the assignee for the bug.