From 921d61030221bc5ff27f8d63d3fa30e93f659484 Mon Sep 17 00:00:00 2001 From: Srikar Dronamraju Date: Fri, 30 May 2008 13:53:59 +0530 Subject: PR 6562, Modify SYSTEMTAP_DEBUGINFO_PATH behaviour. --- translate.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'translate.cxx') 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) -- cgit