diff options
author | Josh Stone <jistone@redhat.com> | 2009-05-15 12:29:19 -0700 |
---|---|---|
committer | Josh Stone <jistone@redhat.com> | 2009-05-15 12:29:19 -0700 |
commit | aa214f4bf19e711e01998a07b390934c1b027f74 (patch) | |
tree | 3e01e5ab631dadbc769fca27f02435d5a9fd6930 /dwflpp.cxx | |
parent | 440f755a3b886c6cfdca9f523302f1f0938f7fec (diff) | |
download | systemtap-steved-aa214f4bf19e711e01998a07b390934c1b027f74.tar.gz systemtap-steved-aa214f4bf19e711e01998a07b390934c1b027f74.tar.xz systemtap-steved-aa214f4bf19e711e01998a07b390934c1b027f74.zip |
Remove unused dwflpp methods
These three methods had no callers, and are thus obsolete:
dwflpp::focus_on_module_containing_global_address(Dwarf_Addr a)
dwflpp::global_address_to_module(Dwarf_Addr a)
dwflpp::cu_name_matches(string pattern)
Diffstat (limited to 'dwflpp.cxx')
-rw-r--r-- | dwflpp.cxx | 39 |
1 files changed, 0 insertions, 39 deletions
@@ -182,17 +182,6 @@ dwflpp::focus_on_function(Dwarf_Die * f) void -dwflpp::focus_on_module_containing_global_address(Dwarf_Addr a) -{ - assert(dwfl); - cu = NULL; - Dwfl_Module* mod = dwfl_addrmodule(dwfl, a); - if (mod) // address could be wildly out of range - focus_on_module(mod, NULL); -} - - -void dwflpp::query_cu_containing_global_address(Dwarf_Addr a, void *arg) { Dwarf_Addr bias; @@ -224,15 +213,6 @@ dwflpp::module_address_to_global(Dwarf_Addr a) } -Dwarf_Addr -dwflpp::global_address_to_module(Dwarf_Addr a) -{ - assert(module); - get_module_dwarf(); - return a - module_bias; -} - - bool dwflpp::module_name_matches(string pattern) { @@ -291,25 +271,6 @@ dwflpp::function_name_final_match(string pattern) } -bool -dwflpp::cu_name_matches(string pattern) -{ - assert(cu); - - // PR 5049: implicit * in front of given path pattern. - // NB: fnmatch() is used without FNM_PATHNAME. - string prefixed_pattern = string("*/") + pattern; - - bool t = (fnmatch(pattern.c_str(), cu_name.c_str(), 0) == 0 || - fnmatch(prefixed_pattern.c_str(), cu_name.c_str(), 0) == 0); - if (t && sess.verbose>3) - clog << "pattern '" << prefixed_pattern << "' " - << "matches " - << "CU '" << cu_name << "'" << "\n"; - return t; -} - - void dwflpp::setup_kernel(bool debuginfo_needed) { |