summaryrefslogtreecommitdiffstats
path: root/tapsets.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'tapsets.cxx')
-rw-r--r--tapsets.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/tapsets.cxx b/tapsets.cxx
index 151a1c45..f20f184e 100644
--- a/tapsets.cxx
+++ b/tapsets.cxx
@@ -903,6 +903,8 @@ struct dwflpp
static char *debuginfo_path = (debuginfo_env_arr ?
debuginfo_env_arr : debuginfo_path_arr);
+ static const char *debug_path = (debuginfo_env_arr ?
+ debuginfo_env_arr : sess.kernel_release.c_str());
static const Dwfl_Callbacks proc_callbacks =
{
@@ -936,7 +938,7 @@ struct dwflpp
else
callback = NULL;
int rc = dwfl_linux_kernel_report_offline (dwfl,
- sess.kernel_release.c_str(),
+ debug_path,
/* selection predicate */
callback);
if (debuginfo_needed)