diff options
author | Roland McGrath <roland@redhat.com> | 2009-09-17 20:52:15 -0700 |
---|---|---|
committer | Roland McGrath <roland@redhat.com> | 2009-09-17 20:52:15 -0700 |
commit | c9a8b3ed6f7a91e4edaf7dcd48a83121bd4ac991 (patch) | |
tree | 657bf445e2804cc8b74a23f9206715a2b0c50b71 /dwflpp.cxx | |
parent | a610bd62bf054fd2544855fbb86c68d6b7da164a (diff) | |
download | systemtap-steved-c9a8b3ed6f7a91e4edaf7dcd48a83121bd4ac991.tar.gz systemtap-steved-c9a8b3ed6f7a91e4edaf7dcd48a83121bd4ac991.tar.xz systemtap-steved-c9a8b3ed6f7a91e4edaf7dcd48a83121bd4ac991.zip |
Fix build error with elfutils < 0.142.
* dwflpp.cxx (translate_location) [!_ELFUTILS_PREREQ (0,142)]:
Pass new argument to c_translate_location.
Diffstat (limited to 'dwflpp.cxx')
-rw-r--r-- | dwflpp.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -309,10 +309,10 @@ static int dwfl_report_offline_predicate (const char* modname, const char* filen if (dwflpp::name_has_wildcard (offline_search_modname)) { int match_p = !fnmatch(offline_search_modname, modname, 0); - // In the wildcard case, we don't short-circuit (return -1) upon + // In the wildcard case, we don't short-circuit (return -1) upon // offline_search_match_p, analogously to dwflpp::module_name_final_match(). - if (match_p) + if (match_p) offline_search_match_p ++; return match_p; @@ -369,7 +369,7 @@ dwflpp::setup_kernel(const string& name, bool debuginfo_needed) if (sess.kernel_build_tree == string("/lib/modules/" + sess.kernel_release + "/build")) elfutils_kernel_path = sess.kernel_release; else - elfutils_kernel_path = sess.kernel_build_tree; + elfutils_kernel_path = sess.kernel_build_tree; offline_search_modname = name.c_str(); offline_search_match_p = 0; @@ -1737,7 +1737,7 @@ dwflpp::translate_location(struct obstack *pool, if (dwarf_formudata (attr, &offset_loc.number) == 0) return c_translate_location (pool, &loc2c_error, this, &loc2c_emit_address, 1, 0, pc, - &offset_loc, 1, NULL, NULL, NULL); + NULL, &offset_loc, 1, NULL, NULL, NULL); } #endif |