diff options
author | Josh Stone <jistone@redhat.com> | 2009-08-26 20:09:48 -0700 |
---|---|---|
committer | Josh Stone <jistone@redhat.com> | 2009-08-26 20:09:48 -0700 |
commit | 8096dd7dbc7bc5712da58a6f9bcb90c0b74c10db (patch) | |
tree | cbc805e5827d0826e46f42ce9bdd97b98175eb08 /configure.ac | |
parent | 546499713651809f026e118f81b9c52f01c895f6 (diff) | |
download | systemtap-steved-8096dd7dbc7bc5712da58a6f9bcb90c0b74c10db.tar.gz systemtap-steved-8096dd7dbc7bc5712da58a6f9bcb90c0b74c10db.tar.xz systemtap-steved-8096dd7dbc7bc5712da58a6f9bcb90c0b74c10db.zip |
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.
Diffstat (limited to 'configure.ac')
0 files changed, 0 insertions, 0 deletions