summaryrefslogtreecommitdiffstats
path: root/dwflpp.cxx
diff options
context:
space:
mode:
authorWilliam Cohen <wcohen@redhat.com>2009-06-01 14:45:22 -0400
committerWilliam Cohen <wcohen@redhat.com>2009-06-01 14:45:22 -0400
commit209dd533fc8de83015d7e83d0426a1cb956ff9fc (patch)
tree1f5253e5691efb3e8f033f0efaec80c9642bf1ed /dwflpp.cxx
parent63a92162205f7c0b6adfef9d91a58806aa33f606 (diff)
downloadsystemtap-steved-209dd533fc8de83015d7e83d0426a1cb956ff9fc.tar.gz
systemtap-steved-209dd533fc8de83015d7e83d0426a1cb956ff9fc.tar.xz
systemtap-steved-209dd533fc8de83015d7e83d0426a1cb956ff9fc.zip
Add debuginfo-install suggestion for kernel probing.
Diffstat (limited to 'dwflpp.cxx')
-rw-r--r--dwflpp.cxx8
1 files changed, 7 insertions, 1 deletions
diff --git a/dwflpp.cxx b/dwflpp.cxx
index d05bdb97..f3429118 100644
--- a/dwflpp.cxx
+++ b/dwflpp.cxx
@@ -299,11 +299,17 @@ dwflpp::setup_kernel(bool debuginfo_needed)
elfutils_kernel_path.c_str(),
&dwfl_report_offline_predicate);
- if (debuginfo_needed)
+ if (debuginfo_needed) {
+ if (rc) {
+ // Suggest a likely kernel dir to find debuginfo rpm for
+ string dir = string("/lib/modules/" + sess.kernel_release );
+ find_debug_rpms(sess, dir.c_str());
+ }
dwfl_assert (string("missing ") + sess.architecture +
string(" kernel/module debuginfo under '") +
sess.kernel_build_tree + string("'"),
rc);
+ }
// XXX: it would be nice if we could do a single
// ..._report_offline call for an entire systemtap script, so