summaryrefslogtreecommitdiffstats
path: root/staptree.h
diff options
context:
space:
mode:
authorfche <fche>2006-09-05 02:08:52 +0000
committerfche <fche>2006-09-05 02:08:52 +0000
commit9b48ce88f4a8aebb8ad176f4e7fe6bbbe36e1fe7 (patch)
treedcf516db39087ad7e66dcd647cf9a122fa326a4b /staptree.h
parent331edd21f3c4f79fb71456d5550d75657b34b80f (diff)
downloadsystemtap-steved-9b48ce88f4a8aebb8ad176f4e7fe6bbbe36e1fe7.tar.gz
systemtap-steved-9b48ce88f4a8aebb8ad176f4e7fe6bbbe36e1fe7.tar.xz
systemtap-steved-9b48ce88f4a8aebb8ad176f4e7fe6bbbe36e1fe7.zip
2006-09-04 Frank Ch. Eigler <fche@elastic.org>
Improve unresolved target-symbol error messages. * staptree.h (target_symbol): Add new field saved_conversion_error. * elaborate.cxx (typeresolution_info::visit_target_symbol): Throw that if found instead of generic error. * tapsets.cxx (t_v_f_c_v::visit_target_symbol): Set it.
Diffstat (limited to 'staptree.h')
-rw-r--r--staptree.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/staptree.h b/staptree.h
index 8c18f276..11243c98 100644
--- a/staptree.h
+++ b/staptree.h
@@ -229,6 +229,8 @@ struct target_symbol : public expression
};
std::string base_name;
std::vector<std::pair<component_type, std::string> > components;
+ semantic_error* saved_conversion_error;
+ target_symbol(): saved_conversion_error (0) {}
void print (std::ostream& o) const;
void visit (visitor* u);
};