summaryrefslogtreecommitdiffstats
path: root/dwflpp.cxx
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>2009-09-17 20:52:15 -0700
committerRoland McGrath <roland@redhat.com>2009-09-17 20:52:15 -0700
commitc9a8b3ed6f7a91e4edaf7dcd48a83121bd4ac991 (patch)
tree657bf445e2804cc8b74a23f9206715a2b0c50b71 /dwflpp.cxx
parenta610bd62bf054fd2544855fbb86c68d6b7da164a (diff)
downloadsystemtap-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.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/dwflpp.cxx b/dwflpp.cxx
index f3015fcc..867fcef2 100644
--- a/dwflpp.cxx
+++ b/dwflpp.cxx
@@ -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