summaryrefslogtreecommitdiffstats
path: root/dwflpp.cxx
diff options
context:
space:
mode:
authorJosh Stone <jistone@redhat.com>2009-06-02 00:53:40 -0700
committerJosh Stone <jistone@redhat.com>2009-06-02 00:53:40 -0700
commitf8f0efc149191d8d840adb5908f68c81e652d07b (patch)
tree062b1153e3c88f510db650a584fdd17f76dff835 /dwflpp.cxx
parentc8ad068755e7424e767660f2c27cb3b1e2d5343d (diff)
parent209dd533fc8de83015d7e83d0426a1cb956ff9fc (diff)
downloadsystemtap-steved-f8f0efc149191d8d840adb5908f68c81e652d07b.tar.gz
systemtap-steved-f8f0efc149191d8d840adb5908f68c81e652d07b.tar.xz
systemtap-steved-f8f0efc149191d8d840adb5908f68c81e652d07b.zip
Merge branch 'master' of ssh://sourceware.org/git/systemtap
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 6ca9780d..3af26053 100644
--- a/dwflpp.cxx
+++ b/dwflpp.cxx
@@ -304,11 +304,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