summaryrefslogtreecommitdiffstats
path: root/staptree.cxx
diff options
context:
space:
mode:
authorFrank Ch. Eigler <fche@elastic.org>2007-11-15 14:35:40 -0500
committerFrank Ch. Eigler <fche@elastic.org>2007-11-15 14:35:40 -0500
commit055e8b89db8f76f0ccc05d08acfe979ba50024d6 (patch)
tree5c51849d470c1ff74162fbeb6be56f190d524daf /staptree.cxx
parent3cf29fed2ae7b36527c95c93754a4c0b0e51e749 (diff)
parentf781f849ceedba83580eead82c3baf949a9738db (diff)
downloadsystemtap-steved-055e8b89db8f76f0ccc05d08acfe979ba50024d6.tar.gz
systemtap-steved-055e8b89db8f76f0ccc05d08acfe979ba50024d6.tar.xz
systemtap-steved-055e8b89db8f76f0ccc05d08acfe979ba50024d6.zip
Merge branch 'master' of git://sources.redhat.com/git/systemtap
Diffstat (limited to 'staptree.cxx')
-rw-r--r--staptree.cxx11
1 files changed, 9 insertions, 2 deletions
diff --git a/staptree.cxx b/staptree.cxx
index ccfc8a8d..d71472a6 100644
--- a/staptree.cxx
+++ b/staptree.cxx
@@ -340,12 +340,18 @@ void functioncall::print (ostream& o) const
bool
print_format::parse_print(const std::string &name,
- bool &stream, bool &format, bool &delim, bool &newline)
+ bool &stream, bool &format, bool &delim, bool &newline, bool &_char)
{
const char *n = name.c_str();
stream = true;
- format = delim = newline = false;
+ format = delim = newline = _char = false;
+
+ if (strcmp(n, "print_char") == 0)
+ {
+ _char = true;
+ return true;
+ }
if (*n == 's')
{
@@ -2292,6 +2298,7 @@ deep_copy_visitor::visit_print_format (print_format* e)
n->print_with_format = e->print_with_format;
n->print_with_delim = e->print_with_delim;
n->print_with_newline = e->print_with_newline;
+ n->print_char = e->print_char;
n->raw_components = e->raw_components;
n->components = e->components;
n->delimiter = e->delimiter;