]> sourceware.org Git - systemtap.git/commit
Reorganize iterate_over_labels
authorJosh Stone <jistone@redhat.com>
Thu, 27 Aug 2009 03:09:48 +0000 (20:09 -0700)
committerJosh Stone <jistone@redhat.com>
Thu, 27 Aug 2009 03:09:48 +0000 (20:09 -0700)
commit8096dd7dbc7bc5712da58a6f9bcb90c0b74c10db
treecbc805e5827d0826e46f42ce9bdd97b98175eb08
parent546499713651809f026e118f81b9c52f01c895f6
Reorganize iterate_over_labels

I noticed that iterate_over_labels was using a static variable as a
recursion variable, which isn't a safe thing to do since it will only be
initialized once.  While fixing that, I also reorganized the function
quite a bit.

* dwflpp.cxx (dwflpp::iterate_over_labels): Take the current function as
  a parameter instead of using a static local.  Rewrite some of the code
  as well to try to make it more obvious.
* tapsets.cxx (add_label_name): Remove in favor of query_label.
  (query_label): New, to check decl_file and fix probe listing.
  (query_srcfile_label, query_cu): Adjust to iterate_over_labels change
  and start using query_label as the callback.
dwflpp.cxx
dwflpp.h
tapsets.cxx
This page took 0.026641 seconds and 5 git commands to generate.