diff options
author | Mark Wielaard <mjw@redhat.com> | 2009-03-19 22:22:25 +0100 |
---|---|---|
committer | Mark Wielaard <mjw@redhat.com> | 2009-03-19 22:22:25 +0100 |
commit | d0cd971e70eba3781a95862223d1f7d45e2f5135 (patch) | |
tree | 4c080450df835f745b949150ef0e5f58cabd4349 | |
parent | e2ae0696f7b8cbbafad87a8739c0cc450f7ee887 (diff) | |
download | systemtap-steved-d0cd971e70eba3781a95862223d1f7d45e2f5135.tar.gz systemtap-steved-d0cd971e70eba3781a95862223d1f7d45e2f5135.tar.xz systemtap-steved-d0cd971e70eba3781a95862223d1f7d45e2f5135.zip |
Throw type into semantic_error message of @cast when not found.
* tapsets.cxx (dwarf_cast_expanding_visitor::visit_cast_op):
Add type to msg added to semantic_error when thrown.
-rw-r--r-- | tapsets.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tapsets.cxx b/tapsets.cxx index 6de6271b..103c39fa 100644 --- a/tapsets.cxx +++ b/tapsets.cxx @@ -5067,7 +5067,8 @@ void dwarf_cast_expanding_visitor::visit_cast_op (cast_op* e) // cast_op to the next pass. We hope that this value ends // up not being referenced after all, so it can be optimized out // quietly. - semantic_error* er = new semantic_error ("type definition not found", e->tok); + string msg = "type definition '" + e->type + "' not found"; + semantic_error* er = new semantic_error (msg, e->tok); // NB: we can have multiple errors, since a @cast // may be expanded in several different contexts: // function ("*") { @cast(...) } |