diff options
author | fche <fche> | 2005-08-21 12:11:41 +0000 |
---|---|---|
committer | fche <fche> | 2005-08-21 12:11:41 +0000 |
commit | 5e309481a22d06f4565cb3cb751d0679db0595a7 (patch) | |
tree | e0715d1df3a3c0c6907927d84e938023c82b106d /tapset/builtin_logging.stp | |
parent | c03e045877248e394ec05921b672c066bdba5696 (diff) | |
download | systemtap-steved-5e309481a22d06f4565cb3cb751d0679db0595a7.tar.gz systemtap-steved-5e309481a22d06f4565cb3cb751d0679db0595a7.tar.xz systemtap-steved-5e309481a22d06f4565cb3cb751d0679db0595a7.zip |
2005-08-21 Frank Ch. Eigler <fche@redhat.com>
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 <fche@redhat.com>
* arith.c (*): Adapt to last_error context variable.
Diffstat (limited to 'tapset/builtin_logging.stp')
-rw-r--r-- | tapset/builtin_logging.stp | 5 |
1 files changed, 3 insertions, 2 deletions
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 */ %} |