summaryrefslogtreecommitdiffstats
path: root/staptree.cxx
diff options
context:
space:
mode:
authorDave Brolley <brolley@redhat.com>2009-07-16 11:29:59 -0400
committerDave Brolley <brolley@redhat.com>2009-07-16 11:29:59 -0400
commit451535e8b0b1018a51206283d89d233d37ea8621 (patch)
tree766a67ed307a252e20b0fe077cb7f52505b54571 /staptree.cxx
parentaa3ed413744f9830c272dbcedc3fffd1974b53ea (diff)
parentf190c8d7aab46fbd15e33493cec7933c93d3c912 (diff)
downloadsystemtap-steved-451535e8b0b1018a51206283d89d233d37ea8621.tar.gz
systemtap-steved-451535e8b0b1018a51206283d89d233d37ea8621.tar.xz
systemtap-steved-451535e8b0b1018a51206283d89d233d37ea8621.zip
Merge branch 'master' of git://sources.redhat.com/git/systemtap
Diffstat (limited to 'staptree.cxx')
-rw-r--r--staptree.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/staptree.cxx b/staptree.cxx
index df075f44..a762cf47 100644
--- a/staptree.cxx
+++ b/staptree.cxx
@@ -262,6 +262,8 @@ void symbol::print (ostream& o) const
void target_symbol::print (std::ostream& o) const
{
+ if (addressof)
+ o << "&";
o << base_name;
for (unsigned i = 0; i < components.size(); ++i)
{
@@ -280,6 +282,8 @@ void target_symbol::print (std::ostream& o) const
void cast_op::print (std::ostream& o) const
{
+ if (addressof)
+ o << "&";
o << base_name << '(' << *operand;
o << ", " << lex_cast_qstring (type);
if (module.length() > 0)