summaryrefslogtreecommitdiffstats
path: root/staptree.h
diff options
context:
space:
mode:
authorgraydon <graydon>2005-07-20 23:51:17 +0000
committergraydon <graydon>2005-07-20 23:51:17 +0000
commit313b2f74ad5b3e54dc1b24d15f29e7bbe9548305 (patch)
treec5659410582623a36ee57001a9af4bc04623001d /staptree.h
parentbfb3d2d24be81e7506c754350612f2743ac280f7 (diff)
downloadsystemtap-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.h')
-rw-r--r--staptree.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/staptree.h b/staptree.h
index b2cfc1ac..62bd8dfe 100644
--- a/staptree.h
+++ b/staptree.h
@@ -225,6 +225,7 @@ struct vardecl: public symboldecl
void printsig (std::ostream& o);
vardecl ();
void set_arity (int arity);
+ bool compatible_arity (int a);
int arity; // -1: unknown; 0: scalar; >0: array
std::vector<exp_type> index_types; // for arrays only
};