summaryrefslogtreecommitdiffstats
path: root/dwflpp.h
diff options
context:
space:
mode:
authorJosh Stone <jistone@redhat.com>2009-07-20 16:32:33 -0700
committerJosh Stone <jistone@redhat.com>2009-07-20 18:08:14 -0700
commit0c16d51256bc77c2b5497b72ec43b7864d2b47a8 (patch)
tree0246056854724aec3bf4d64b4cc6d1639e5867c6 /dwflpp.h
parenta2639cb76e9151cad6ceebc21857d2d6aa8cbc8a (diff)
downloadsystemtap-steved-0c16d51256bc77c2b5497b72ec43b7864d2b47a8.tar.gz
systemtap-steved-0c16d51256bc77c2b5497b72ec43b7864d2b47a8.tar.xz
systemtap-steved-0c16d51256bc77c2b5497b72ec43b7864d2b47a8.zip
Allow dwflpp to take a vector of module names
This will be used to load tracepoint modules as a bunch of little query modules into a single dwflpp. * dwflpp.cxx (setup_user): take a vector instead of a single module (dwflpp::dwflpp): form a vector in the singular case, and add a variant that takes and passes through a vector of modules.
Diffstat (limited to 'dwflpp.h')
-rw-r--r--dwflpp.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/dwflpp.h b/dwflpp.h
index a2c38ad8..20bcc0d0 100644
--- a/dwflpp.h
+++ b/dwflpp.h
@@ -167,6 +167,7 @@ struct dwflpp
std::string function_name;
dwflpp(systemtap_session & session, const std::string& user_module, bool kernel_p);
+ dwflpp(systemtap_session & session, const std::vector<std::string>& user_modules);
~dwflpp();
void get_module_dwarf(bool required = false, bool report = true);
@@ -281,7 +282,7 @@ private:
Dwarf_Die * function;
void setup_kernel(const std::string& module_name, bool debuginfo_needed = true);
- void setup_user(const std::string& module_name, bool debuginfo_needed = true);
+ void setup_user(const std::vector<std::string>& modules, bool debuginfo_needed = true);
typedef std::map<Dwarf*, std::vector<Dwarf_Die>*> module_cu_cache_t;
module_cu_cache_t module_cu_cache;