summaryrefslogtreecommitdiffstats
path: root/staptree.cxx
diff options
context:
space:
mode:
authorFrank Ch. Eigler <fche@elastic.org>2008-01-25 14:04:39 -0500
committerFrank Ch. Eigler <fche@elastic.org>2008-01-25 14:04:39 -0500
commit808462c906ccbab27dd05c16bd502a4dadcd2cfd (patch)
tree033397a7d7c8399aaf3cb0d339dd0480b8026725 /staptree.cxx
parent1abba5f237b827c63bbf5e28bda623d4bd8400ed (diff)
downloadsystemtap-steved-808462c906ccbab27dd05c16bd502a4dadcd2cfd.tar.gz
systemtap-steved-808462c906ccbab27dd05c16bd502a4dadcd2cfd.tar.xz
systemtap-steved-808462c906ccbab27dd05c16bd502a4dadcd2cfd.zip
PR 5672: fix generated dwarf probe point names from wildcards
2008-01-25 Frank Ch. Eigler <fche@elastic.org> PR 5672. * staptree.cxx (probe_point copy ctor): New function. * staptree.h: Declare it. * tapsets.cxx (dwarf_derived_probe ctor): Call it to shallow-copy incoming base probe location before recomputing/overwriting it.
Diffstat (limited to 'staptree.cxx')
-rw-r--r--staptree.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/staptree.cxx b/staptree.cxx
index 173314ee..6d001375 100644
--- a/staptree.cxx
+++ b/staptree.cxx
@@ -82,6 +82,14 @@ probe_point::probe_point (std::vector<component*> const & comps,
{
}
+// NB: shallow-copy of compoonents & condition!
+probe_point::probe_point (const probe_point& pp):
+ components(pp.components), tok(pp.tok), optional (pp.optional), sufficient (pp.sufficient),
+ condition (pp.condition)
+{
+}
+
+
probe_point::probe_point ():
tok (0), optional (false), sufficient (false), condition (0)
{