diff options
author | fche <fche> | 2006-09-06 15:01:37 +0000 |
---|---|---|
committer | fche <fche> | 2006-09-06 15:01:37 +0000 |
commit | 4b5f3e450724431c52c100143d859846f4009329 (patch) | |
tree | 9f56e99a45928635482aa0356b18bac47fa730de /parse.h | |
parent | bf72ac26078c3c179c98afca46e69827acf4d246 (diff) | |
download | systemtap-steved-4b5f3e450724431c52c100143d859846f4009329.tar.gz systemtap-steved-4b5f3e450724431c52c100143d859846f4009329.tar.xz systemtap-steved-4b5f3e450724431c52c100143d859846f4009329.zip |
2006-09-06 Frank Ch. Eigler <fche@elastic.org>
Add basic support for initialized globals.
* parse.cxx (parse_global): Parse initialization clause, implement
by rewriting to "probe begin { var = value }".
* parse.h: Corresponding changes.
* stap.1.in: Document optional initialization.
2006-09-06 Frank Ch. Eigler <fche@elastic.org>
* parseok/eighteen.stp, semok/twentythree.stp: New files for
testing initialized globals.
Diffstat (limited to 'parse.h')
-rw-r--r-- | parse.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -154,7 +154,7 @@ private: private: // nonterminals void parse_probe (std::vector<probe*>&, std::vector<probe_alias*>&); - void parse_global (std::vector<vardecl*>&); + void parse_global (std::vector<vardecl*>&, std::vector<probe*>&); void parse_functiondecl (std::vector<functiondecl*>&); embeddedcode* parse_embeddedcode (); probe_point* parse_probe_point (); |