From 7584f16292bc4557b3f7e3f9dcbc5dbe07bab562 Mon Sep 17 00:00:00 2001 From: Rajan Arora Date: Mon, 27 Oct 2008 15:15:53 -0400 Subject: RHBZ 468139 avoid display of tapset globals --- elaborate.cxx | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'elaborate.cxx') 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; -- cgit