diff options
author | graydon <graydon> | 2005-07-08 03:11:36 +0000 |
---|---|---|
committer | graydon <graydon> | 2005-07-08 03:11:36 +0000 |
commit | 85365d1b9cfd2d75cb847be4ced3de583f91865b (patch) | |
tree | 66ed4360c2114dd8ad4c316a14cde3d474f09976 /testsuite/semok | |
parent | 26a23e7acee698ac38349f19d1a9602ed0f6a4fd (diff) | |
download | systemtap-steved-85365d1b9cfd2d75cb847be4ced3de583f91865b.tar.gz systemtap-steved-85365d1b9cfd2d75cb847be4ced3de583f91865b.tar.xz systemtap-steved-85365d1b9cfd2d75cb847be4ced3de583f91865b.zip |
2005-07-07 Graydon Hoare <graydon@redhat.com>
* staptree.{h,cxx} (deep_copy_visitor): New visitor.
* elaborate.cxx
(derived_probe::derived_probe):
(alias_expansion_builder::build): Use it.
* testsuite/semok/fifteen.stp: New test which relies on deep copy.
Diffstat (limited to 'testsuite/semok')
-rwxr-xr-x | testsuite/semok/fifteen.stp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/testsuite/semok/fifteen.stp b/testsuite/semok/fifteen.stp new file mode 100755 index 00000000..c57d28eb --- /dev/null +++ b/testsuite/semok/fifteen.stp @@ -0,0 +1,12 @@ +#! stap -p2 + +function trace (n) { return 0 } + +# multiple independent derived probes using the "same" variable +# (this used to crash before we deep-copied the body) + +probe begin, begin, begin +{ + base_num = 10 + trace(base_num) +} |