diff options
author | graydon <graydon> | 2005-07-20 23:51:17 +0000 |
---|---|---|
committer | graydon <graydon> | 2005-07-20 23:51:17 +0000 |
commit | 313b2f74ad5b3e54dc1b24d15f29e7bbe9548305 (patch) | |
tree | c5659410582623a36ee57001a9af4bc04623001d /staptree.cxx | |
parent | bfb3d2d24be81e7506c754350612f2743ac280f7 (diff) | |
download | systemtap-steved-313b2f74ad5b3e54dc1b24d15f29e7bbe9548305.tar.gz systemtap-steved-313b2f74ad5b3e54dc1b24d15f29e7bbe9548305.tar.xz systemtap-steved-313b2f74ad5b3e54dc1b24d15f29e7bbe9548305.zip |
2005-07-20 Graydon Hoare <graydon@redhat.com>
* elaborate.{cxx,h} (find_array): Remove.
(find_scalar): Rename to find_var, add array support.
* staptree.{cxx,h} (vardecl::compatible_arity): New method.
* translate.cxx: Refactor, add array read/write support.
* testsuite/transok/three.stp: Uncomment array uses.
* testsuite/transok/seven.stp: New test of array r/w.
Diffstat (limited to 'staptree.cxx')
-rw-r--r-- | staptree.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/staptree.cxx b/staptree.cxx index 706f4260..8183cffb 100644 --- a/staptree.cxx +++ b/staptree.cxx @@ -109,6 +109,14 @@ vardecl::set_arity (int a) } } +bool +vardecl::compatible_arity (int a) +{ + if (arity == -1) + return true; + return arity == a; +} + functiondecl::functiondecl (): body (0) |