summaryrefslogtreecommitdiffstats
path: root/translate.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 /translate.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 'translate.cxx')
-rw-r--r--translate.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/translate.cxx b/translate.cxx
index 58fa9182..7770db09 100644
--- a/translate.cxx
+++ b/translate.cxx
@@ -4407,6 +4407,8 @@ emit_symbol_data_from_debuginfo(systemtap_session& s, ofstream& kallsyms_out)
static char *debuginfo_path = (debuginfo_env_arr ?
debuginfo_env_arr : debuginfo_path_arr);
+ static const char *debug_path = (debuginfo_env_arr ?
+ debuginfo_env_arr : s.kernel_release.c_str());
static const Dwfl_Callbacks kernel_callbacks =
{
@@ -4422,7 +4424,7 @@ emit_symbol_data_from_debuginfo(systemtap_session& s, ofstream& kallsyms_out)
dwfl_report_begin (dwfl);
int rc = dwfl_linux_kernel_report_offline (dwfl,
- s.kernel_release.c_str(),
+ debug_path,
kernel_filter);
dwfl_report_end (dwfl, NULL, NULL);
if (rc < 0)