This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug translator/20307] 'private' on tapset global arrays causes errors
- From: "mcermak at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sourceware dot org
- Date: Thu, 30 Jun 2016 15:11:18 +0000
- Subject: [Bug translator/20307] 'private' on tapset global arrays causes errors
- Auto-submitted: auto-generated
- References: <bug-20307-6586 at http dot sourceware dot org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=20307
Martin Cermak <mcermak at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mcermak at redhat dot com
--- Comment #5 from Martin Cermak <mcermak at redhat dot com> ---
(In reply to Frank Ch. Eigler from comment #4)
> probable fix:
>
> 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=0; j<f->globals.size(); j++)
> {
> vardecl* g = f->globals[j];
> - if (g->name == gname)
> + if ((g->name == gname) ||
> + (g->name == pname)) // private global within tapset
> {
> g->set_arity (arity, tok);
This seems to solve the problem. Full regression testing passed.
--
You are receiving this mail because:
You are the assignee for the bug.