From 86bf665eac22efa78936a3059e7bc90ee10dcf4b Mon Sep 17 00:00:00 2001 From: Tim Moore Date: Wed, 11 Jun 2008 11:08:22 +0200 Subject: PR 2608 plus some refactoring in tapsets.cxx New dwarf_wrappers.h, dwarf_wrappers.cxx for for idiomatic access to libdwarf and refactoring somethings out of the giant classes in tapsets.cxx. --- elaborate.h | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'elaborate.h') diff --git a/elaborate.h b/elaborate.h index 30bf5bce..c0e35477 100644 --- a/elaborate.h +++ b/elaborate.h @@ -13,7 +13,8 @@ #include "parse.h" #include #include -#include +//#include +#include #include #include @@ -175,21 +176,23 @@ struct derived_probe_group // ------------------------------------------------------------------------ +typedef std::map literal_map_t; + struct derived_probe_builder { virtual void build(systemtap_session & sess, probe* base, probe_point* location, - std::map const & parameters, + literal_map_t const & parameters, std::vector & finished_results) = 0; virtual ~derived_probe_builder() {} virtual void build_no_more (systemtap_session &) {} - static bool has_null_param (std::map const & parameters, + static bool has_null_param (literal_map_t const & parameters, const std::string& key); - static bool get_param (std::map const & parameters, + static bool get_param (literal_map_t const & parameters, const std::string& key, std::string& value); - static bool get_param (std::map const & parameters, + static bool get_param (literal_map_t const & parameters, const std::string& key, int64_t& value); }; -- cgit