This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug translator/20307] 'private' on tapset global arrays causes errors


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]