diff options
author | hunt <hunt> | 2007-11-12 21:55:53 +0000 |
---|---|---|
committer | hunt <hunt> | 2007-11-12 21:55:53 +0000 |
commit | 32784362de8e2cfc686ce98557dd261003aff2ff (patch) | |
tree | 8505a8c67279564e9682d23e1f8d106e48e4c21c /staptree.h | |
parent | 53c62e2914260e8f31b0de5b9a376babc4c9d9a0 (diff) | |
download | systemtap-steved-32784362de8e2cfc686ce98557dd261003aff2ff.tar.gz systemtap-steved-32784362de8e2cfc686ce98557dd261003aff2ff.tar.xz systemtap-steved-32784362de8e2cfc686ce98557dd261003aff2ff.zip |
2007-11-12 Martin Hunt <hunt@redhat.com>
* translate.cxx (visit_print_format): Strings without a format or
formatted with "%s" or "%s\n" should be printed with calls to _stp_print().
Call _stp_print_char() if printing a char.
* staptree.cxx (parse_print): Check for "print_char".
* staptree.h (struct print_format): Add print_char.
(parse_print): Update prototype.
* parse.cxx (parse_symbol): Set print_char bool in print_format.
Diffstat (limited to 'staptree.h')
-rw-r--r-- | staptree.h | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -266,6 +266,7 @@ struct print_format: public expression bool print_with_format; bool print_with_delim; bool print_with_newline; + bool print_char; enum format_flag { @@ -328,8 +329,8 @@ struct print_format: public expression static std::string components_to_string(std::vector<format_component> const & components); static std::vector<format_component> string_to_components(std::string const & str); - static bool parse_print(const std::string &name, - bool &stream, bool &format, bool &delim, bool &newline); + static bool parse_print(const std::string &name, bool &stream, + bool &format, bool &delim, bool &newline, bool &_char); void print (std::ostream& o) const; void visit (visitor* u); @@ -560,8 +561,6 @@ struct stapfile }; - - struct probe_point { struct component // XXX: sort of a restricted functioncall |