From 5e309481a22d06f4565cb3cb751d0679db0595a7 Mon Sep 17 00:00:00 2001 From: fche Date: Sun, 21 Aug 2005 12:11:41 +0000 Subject: 2005-08-21 Frank Ch. Eigler PR systemtap/1195, systemtap/1193 * elaborate.cxx (alias_expansion_builder): Set new block token. * parse.cxx (parse_symbol): Set new target_symbol token. * runtest.sh: Store more pertinent failure data. * tapsets.cxx (emit_probe_entries): Rewrite error-handling path. * translate.cxx (emit_common_header): Goodbye errorcount, hello last_error & last_stmt. (c_unparser::visit_statement): New "header" for all other stmts. (c_assignop, visit_binary_expression): Adapt to last_error. * tapset/builtin_logging.stp: Adapt to last_error. 2005-08-21 Frank Ch. Eigler * arith.c (*): Adapt to last_error context variable. --- tapset/builtin_logging.stp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tapset') diff --git a/tapset/builtin_logging.stp b/tapset/builtin_logging.stp index 11b00cab..bf01a0fc 100644 --- a/tapset/builtin_logging.stp +++ b/tapset/builtin_logging.stp @@ -25,12 +25,13 @@ function warn (msg) { } function exit () %{ - CONTEXT->errorcount ++; /* kill current probe */ + /* not a NULL pointer, but don't cause _stp_error */ + CONTEXT->last_error = ""; _stp_exit (); %} function _error (msg) %{ - CONTEXT->errorcount ++; /* kill current probe */ + CONTEXT->last_error = "called error()"; /* kill current probe */ _stp_error ("%s", THIS->msg); /* implies _stp_exit */ %} -- cgit