From 0c16d51256bc77c2b5497b72ec43b7864d2b47a8 Mon Sep 17 00:00:00 2001 From: Josh Stone Date: Mon, 20 Jul 2009 16:32:33 -0700 Subject: 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. --- dwflpp.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'dwflpp.h') 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& 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& modules, bool debuginfo_needed = true); typedef std::map*> module_cu_cache_t; module_cu_cache_t module_cu_cache; -- cgit