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. --- tapsets.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tapsets.cxx') 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) -- cgit