From 20c6c071f5dfe6942438d97364e74f424217c94b Mon Sep 17 00:00:00 2001 From: graydon Date: Wed, 29 Jun 2005 22:42:23 +0000 Subject: 2005-06-27 Graydon Hoare * staptree.{h,cxx} (probe_alias): New structure. * parse.{h,cxx} (parser::parse): Parse probes or probe aliases. (parser::parse_probe): Likewise. * tapsets.{h,cxx}: (derived_probe_builder): (match_key): (match_node): (alias_derived_probe): Move from here, * elaborate.{h,cxx}: to here. * elaborate.h (systemtap_session::pattern_root): New member. (register_library_aliases): New function. * tapsets.cxx: Build one dwarf_derived_probe per target address. --- staptree.cxx | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'staptree.cxx') diff --git a/staptree.cxx b/staptree.cxx index f74f9a91..1243df98 100644 --- a/staptree.cxx +++ b/staptree.cxx @@ -373,6 +373,12 @@ void stapfile::print (ostream& o) o << endl; } + for (unsigned i=0; iprint (o); + o << endl; + } + for (unsigned i=0; iprint (o); @@ -417,6 +423,25 @@ void probe_point::print (ostream& o) } } +probe_alias::probe_alias(std::vector const & aliases): + probe (), alias_names (aliases) +{ +} + +void probe_alias::printsig (ostream& o) +{ + for (unsigned i=0; i0 ? " = " : ""); + alias_names[i]->print (o); + } + for (unsigned i=0; i0 ? ", " : ""); + locations[i]->print (o); + } +} + ostream& operator << (ostream& o, probe_point& k) { -- cgit