summaryrefslogtreecommitdiffstats
path: root/parse.cxx
diff options
context:
space:
mode:
authorJosh Stone <jistone@redhat.com>2009-08-26 20:09:48 -0700
committerJosh Stone <jistone@redhat.com>2009-08-26 20:09:48 -0700
commit8096dd7dbc7bc5712da58a6f9bcb90c0b74c10db (patch)
treecbc805e5827d0826e46f42ce9bdd97b98175eb08 /parse.cxx
parent546499713651809f026e118f81b9c52f01c895f6 (diff)
downloadsystemtap-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 'parse.cxx')
0 files changed, 0 insertions, 0 deletions