diff options
author | Tim Moore <moore@blackbox.bricoworks.com> | 2008-06-11 11:08:22 +0200 |
---|---|---|
committer | Tim Moore <moore@blackbox.bricoworks.com> | 2008-06-11 11:11:54 +0200 |
commit | 86bf665eac22efa78936a3059e7bc90ee10dcf4b (patch) | |
tree | 3492e0f5b84f66c25bf5d2d33190dcba479ed8f4 /elaborate.h | |
parent | 335972be354a791757e475417c955efd9a45f03d (diff) | |
download | systemtap-steved-86bf665eac22efa78936a3059e7bc90ee10dcf4b.tar.gz systemtap-steved-86bf665eac22efa78936a3059e7bc90ee10dcf4b.tar.xz systemtap-steved-86bf665eac22efa78936a3059e7bc90ee10dcf4b.zip |
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.
Diffstat (limited to 'elaborate.h')
-rw-r--r-- | elaborate.h | 13 |
1 files changed, 8 insertions, 5 deletions
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 <string> #include <vector> -#include <iostream> +//#include <iostream> +#include <iosfwd> #include <sstream> #include <map> @@ -175,21 +176,23 @@ struct derived_probe_group // ------------------------------------------------------------------------ +typedef std::map<std::string, literal*> literal_map_t; + struct derived_probe_builder { virtual void build(systemtap_session & sess, probe* base, probe_point* location, - std::map<std::string, literal*> const & parameters, + literal_map_t const & parameters, std::vector<derived_probe*> & finished_results) = 0; virtual ~derived_probe_builder() {} virtual void build_no_more (systemtap_session &) {} - static bool has_null_param (std::map<std::string, literal*> const & parameters, + static bool has_null_param (literal_map_t const & parameters, const std::string& key); - static bool get_param (std::map<std::string, literal*> const & parameters, + static bool get_param (literal_map_t const & parameters, const std::string& key, std::string& value); - static bool get_param (std::map<std::string, literal*> const & parameters, + static bool get_param (literal_map_t const & parameters, const std::string& key, int64_t& value); }; |