diff options
author | Mark Wielaard <mjw@redhat.com> | 2009-09-29 00:12:26 +0200 |
---|---|---|
committer | Mark Wielaard <mjw@redhat.com> | 2009-09-29 00:24:06 +0200 |
commit | 5f8ca04fbb0682ff8647b4df5de68cd1042e312d (patch) | |
tree | 22fea238c8e5175e4040f1b38046b7686c053b8c /tapsets.cxx | |
parent | dc3f293b2581a31e78edad07cf41f7c10106ab4b (diff) | |
download | systemtap-steved-5f8ca04fbb0682ff8647b4df5de68cd1042e312d.tar.gz systemtap-steved-5f8ca04fbb0682ff8647b4df5de68cd1042e312d.tar.xz systemtap-steved-5f8ca04fbb0682ff8647b4df5de68cd1042e312d.zip |
Factor out duplicated code to setup user/module Dwfl from dwflpp/translate.
* setupdwfl.h: Add setup_dwfl_user() and is_user_module().
* setupdwfl.cxx: Likewise.
* dwflpp.cxx (setup_user): Use setup_dwfl_user().
* translate.cxx (emit_symbol_data): Likewise and is_user_module().
* tapsets.cxx (dwarf_cast_expanding_visitor::visit_cast_op):
Use is_user_module().
Diffstat (limited to 'tapsets.cxx')
-rw-r--r-- | tapsets.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tapsets.cxx b/tapsets.cxx index 4a8432f7..bedb267a 100644 --- a/tapsets.cxx +++ b/tapsets.cxx @@ -21,6 +21,7 @@ #include "auto_free.h" #include "hash.h" #include "dwflpp.h" +#include "setupdwfl.h" #include <cstdlib> #include <algorithm> @@ -2606,7 +2607,7 @@ void dwarf_cast_expanding_visitor::visit_cast_op (cast_op* e) dwflpp* dw; try { - if (module.find('/') == string::npos) + if (! is_user_module (module)) { // kernel or kernel module target dw = db.get_kern_dw(s, module); |