[Bug translator/20307] 'private' on tapset global arrays causes errors
mcermak at redhat dot com
sourceware-bugzilla@sourceware.org
Thu Jun 30 15:11:00 GMT 2016
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.
More information about the Systemtap
mailing list