summaryrefslogtreecommitdiffstats
path: root/elaborate.h
diff options
context:
space:
mode:
authorFrank Ch. Eigler <fche@elastic.org>2009-10-19 11:33:24 -0400
committerFrank Ch. Eigler <fche@elastic.org>2009-10-19 13:11:30 -0400
commit2e526dabcf4b15fb102e295b282df3af54d5c9d3 (patch)
tree026750014ab7bbbd046ac555ee44fb06d29b010d /elaborate.h
parenta34babfa5246b1f8393c18fde450ec684f11bc21 (diff)
downloadsystemtap-steved-2e526dabcf4b15fb102e295b282df3af54d5c9d3.tar.gz
systemtap-steved-2e526dabcf4b15fb102e295b282df3af54d5c9d3.tar.xz
systemtap-steved-2e526dabcf4b15fb102e295b282df3af54d5c9d3.zip
PR10799: warn on possibly uintended local-vs-global namespace collision
* elaborate.cxx (find_var): Take extra token parameter. Look for cross-file global variable resolution, signal a warning. * testsuite/systemtap.examples/io/traceio2.stp: Fix it. * testsuite/systemtap.syscall/sys.stp: Fix it. * NEWS: Document it.
Diffstat (limited to 'elaborate.h')
-rw-r--r--elaborate.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/elaborate.h b/elaborate.h
index bee71a50..fec62d59 100644
--- a/elaborate.h
+++ b/elaborate.h
@@ -37,7 +37,7 @@ public:
derived_probe* current_probe;
symresolution_info (systemtap_session& s);
- vardecl* find_var (const std::string& name, int arity);
+ vardecl* find_var (const std::string& name, int arity, const token *tok);
functiondecl* find_function (const std::string& name, unsigned arity);
void visit_block (block *s);