summaryrefslogtreecommitdiffstats
path: root/tapsets.cxx
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 /tapsets.cxx
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 'tapsets.cxx')
-rw-r--r--tapsets.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/tapsets.cxx b/tapsets.cxx
index 1d491cc2..451867a2 100644
--- a/tapsets.cxx
+++ b/tapsets.cxx
@@ -2198,8 +2198,10 @@ target_variable_flavour_calculating_visitor::visit_target_symbol (target_symbol
lvalue,
ty);
}
- catch (const semantic_error& e)
+ catch (const semantic_error& x)
{
+ e->saved_conversion_error = new semantic_error (x);
+ e->saved_conversion_error->tok1 = e->tok;
ty = pe_unknown;
}