diff options
author | Frank Ch. Eigler <fche@elastic.org> | 2008-05-21 11:42:51 -0400 |
---|---|---|
committer | Frank Ch. Eigler <fche@elastic.org> | 2008-05-21 11:42:51 -0400 |
commit | d0c4107b0e02c31acb062de829c6d104cb6918df (patch) | |
tree | 0bef81ad6399fba8b5995bff85d22d9ed6c84d20 /staptree.cxx | |
parent | f61c1f2d83a57ffd207573dc47b913dd45b9e317 (diff) | |
download | systemtap-steved-d0c4107b0e02c31acb062de829c6d104cb6918df.tar.gz systemtap-steved-d0c4107b0e02c31acb062de829c6d104cb6918df.tar.xz systemtap-steved-d0c4107b0e02c31acb062de829c6d104cb6918df.zip |
PR6538: fix treatment of initialized globals
Diffstat (limited to 'staptree.cxx')
-rw-r--r-- | staptree.cxx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/staptree.cxx b/staptree.cxx index b5cbd5c9..347d799f 100644 --- a/staptree.cxx +++ b/staptree.cxx @@ -1713,9 +1713,14 @@ varuse_collecting_visitor::visit_symbol (symbol *e) if (e->referent == 0) throw semantic_error ("symbol without referent", e->tok); - // handle initialized globals + // We could handle initialized globals by marking them as "written". + // However, this current visitor may be called for a function or + // probe body, from the point of view of which this global is + // already initialized, so not written. + /* if (e->referent->init) written.insert (e->referent); + */ if (current_lvalue == e || current_lrvalue == e) { |