diff options
author | Josh Stone <jistone@redhat.com> | 2009-08-24 17:54:40 -0700 |
---|---|---|
committer | Josh Stone <jistone@redhat.com> | 2009-08-24 18:10:48 -0700 |
commit | bd25380dad5aecf4a717aa42d99dd5c45c85f881 (patch) | |
tree | dfc2fcfea76c33d08aa25e9521668804c0b5e28b /dwflpp.cxx | |
parent | 0facf3509ae93f77d9efc6841731f7ff98982630 (diff) | |
download | systemtap-steved-bd25380dad5aecf4a717aa42d99dd5c45c85f881.tar.gz systemtap-steved-bd25380dad5aecf4a717aa42d99dd5c45c85f881.tar.xz systemtap-steved-bd25380dad5aecf4a717aa42d99dd5c45c85f881.zip |
PR2475: Filter filenames against the decl_file
We used to only check that a CU contains at least one srcfile matching
the user's file spec. This patch ensures that the selected function was
actually defined in one of the matching srcfiles.
* tapsets.cxx (struct dwarf_query): Make filtered_srcfiles carry
strings, so we can easily lookup matches later.
(query_dwarf_func): Check that the decl_file is in filtered_srcfiles.
(query_cu): Adjust to using set<string>.
* dwflpp.cxx (dwflpp::collect_srcfiles_matching): Take a set<string>.
Diffstat (limited to 'dwflpp.cxx')
-rw-r--r-- | dwflpp.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1000,7 +1000,7 @@ dwflpp::iterate_over_labels (Dwarf_Die *begin_die, void dwflpp::collect_srcfiles_matching (string const & pattern, - set<char const *> & filtered_srcfiles) + set<string> & filtered_srcfiles) { assert (module); assert (cu); |