summaryrefslogtreecommitdiffstats
path: root/tapsets.cxx
diff options
context:
space:
mode:
authorFrank Ch. Eigler <fche@elastic.org>2009-10-19 11:13:10 -0400
committerFrank Ch. Eigler <fche@elastic.org>2009-10-19 13:11:30 -0400
commita34babfa5246b1f8393c18fde450ec684f11bc21 (patch)
tree4a8f030f07d49011ffa16d6b2354f57ccf8f3179 /tapsets.cxx
parent720bbfc68d9e7dfd8c37587c6a61da75d6aab4fa (diff)
downloadsystemtap-steved-a34babfa5246b1f8393c18fde450ec684f11bc21.tar.gz
systemtap-steved-a34babfa5246b1f8393c18fde450ec684f11bc21.tar.xz
systemtap-steved-a34babfa5246b1f8393c18fde450ec684f11bc21.zip
provide error message token/context if loc2c doesn't
* tapsets.cxx (visit_target_symbol): When catching semantic_error, fill in token value if unset. Can happen for loc2c DIE() msgs.
Diffstat (limited to 'tapsets.cxx')
-rw-r--r--tapsets.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/tapsets.cxx b/tapsets.cxx
index 113395e3..59dbc4b3 100644
--- a/tapsets.cxx
+++ b/tapsets.cxx
@@ -2317,6 +2317,7 @@ dwarf_var_expanding_visitor::visit_target_symbol (target_symbol *e)
// quietly.
provide (e);
semantic_error* saveme = new semantic_error (er); // copy it
+ if (! saveme->tok1) { saveme->tok1 = e->tok; } // fill in token if needed
// NB: we can have multiple errors, since a $target variable
// may be expanded in several different contexts:
// function ("*") { $var }