From 32784362de8e2cfc686ce98557dd261003aff2ff Mon Sep 17 00:00:00 2001 From: hunt Date: Mon, 12 Nov 2007 21:55:53 +0000 Subject: 2007-11-12 Martin Hunt * 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. --- staptree.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'staptree.h') diff --git a/staptree.h b/staptree.h index a6b7c173..23f43566 100644 --- a/staptree.h +++ b/staptree.h @@ -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 const & components); static std::vector 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 -- cgit