summaryrefslogtreecommitdiffstats
path: root/dwflpp.cxx
diff options
context:
space:
mode:
authorWilliam Cohen <wcohen@redhat.com>2009-05-27 11:14:12 -0400
committerWilliam Cohen <wcohen@redhat.com>2009-05-27 11:14:12 -0400
commit2ed04863c3426f94932d4a4e4b5d6c7b84e49dfd (patch)
treef3eccb813b7496111613614552198bdaf4223deb /dwflpp.cxx
parenteee30f40ac28c7090a269611fb1baea5c050c612 (diff)
downloadsystemtap-steved-2ed04863c3426f94932d4a4e4b5d6c7b84e49dfd.tar.gz
systemtap-steved-2ed04863c3426f94932d4a4e4b5d6c7b84e49dfd.tar.xz
systemtap-steved-2ed04863c3426f94932d4a4e4b5d6c7b84e49dfd.zip
Suggest rpms to install using debuginfo-install.
The patch makes use of the RPM libraries to determine which rpm supplied the executable and from that information suggest a command to install the appropriate debuginfo rpm. This is enabled using the "--with-rpm" option for configure. Can be explicitly disabled with "--without-rpm".
Diffstat (limited to 'dwflpp.cxx')
-rw-r--r--dwflpp.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/dwflpp.cxx b/dwflpp.cxx
index bfae1354..d05bdb97 100644
--- a/dwflpp.cxx
+++ b/dwflpp.cxx
@@ -21,6 +21,7 @@
#include "dwarf_wrappers.h"
#include "auto_free.h"
#include "hash.h"
+#include "rpm_finder.h"
#include <cstdlib>
#include <algorithm>
@@ -108,6 +109,9 @@ dwflpp::get_module_dwarf(bool required, bool report)
if (i)
msg += string(": ") + dwfl_errmsg (i);
+ /* add module_name to list to find rpm */
+ find_debug_rpms(sess, module_name.c_str());
+
if (required)
throw semantic_error (msg);
else