summaryrefslogtreecommitdiffstats
path: root/tapsets.cxx
diff options
context:
space:
mode:
authorSrikar Dronamraju <srikar@linux.vnet.ibm.com>2008-05-30 13:53:59 +0530
committerSrikar Dronamraju <srikar@linux.vnet.ibm.com>2008-05-30 13:53:59 +0530
commit921d61030221bc5ff27f8d63d3fa30e93f659484 (patch)
treec4df636c217e2037fcc844a8d86e17505fe5c972 /tapsets.cxx
parent974665688b988acc952c9a09c55079844c2bbc63 (diff)
downloadsystemtap-steved-921d61030221bc5ff27f8d63d3fa30e93f659484.tar.gz
systemtap-steved-921d61030221bc5ff27f8d63d3fa30e93f659484.tar.xz
systemtap-steved-921d61030221bc5ff27f8d63d3fa30e93f659484.zip
PR 6562, Modify SYSTEMTAP_DEBUGINFO_PATH behaviour.
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)