diff options
author | Rajan Arora <rarora@redhat.com> | 2008-10-27 15:15:53 -0400 |
---|---|---|
committer | Rajan Arora <rarora@redhat.com> | 2008-10-27 15:15:53 -0400 |
commit | 7584f16292bc4557b3f7e3f9dcbc5dbe07bab562 (patch) | |
tree | 9da212b5cee991e9b42e40aa1553578e6aa53ca2 /elaborate.cxx | |
parent | 26343b47cdaff0420e6405295a0788b334be4eb6 (diff) | |
download | systemtap-steved-7584f16292bc4557b3f7e3f9dcbc5dbe07bab562.tar.gz systemtap-steved-7584f16292bc4557b3f7e3f9dcbc5dbe07bab562.tar.xz systemtap-steved-7584f16292bc4557b3f7e3f9dcbc5dbe07bab562.zip |
RHBZ 468139 avoid display of tapset globals
Diffstat (limited to 'elaborate.cxx')
-rw-r--r-- | elaborate.cxx | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/elaborate.cxx b/elaborate.cxx index 6e01e813..7cbac31f 100644 --- a/elaborate.cxx +++ b/elaborate.cxx @@ -1171,8 +1171,17 @@ void add_global_var_display (systemtap_session& s) // declared only within tapsets. (RHBZ 468139), but rather // only within the end-user script. - // XXX: for example, search s.library_files[]->globals->name - // for a matching with l->name, then "continue;" to skip it. + bool tapset_global = false; + for (size_t m=0; m < s.library_files.size(); m++) + { + for (size_t n=0; n < s.library_files[m]->globals.size(); n++) + { + if (l->name == s.library_files[m]->globals[n]->name) + {tapset_global = true; break;} + } + } + if (tapset_global) + continue; print_format* pf = new print_format; probe* p = new probe; |