]> sourceware.org Git - systemtap.git/commit
PR15029: Reflect script errors in stapdyn's exit status
authorJosh Stone <jistone@redhat.com>
Tue, 11 Jun 2013 22:03:43 +0000 (15:03 -0700)
committerJosh Stone <jistone@redhat.com>
Tue, 11 Jun 2013 22:03:43 +0000 (15:03 -0700)
commite280dd544d109e2925ac410f93c5be0dd0813cfd
tree515fc73c42acd6d1de9aaba9f493460a5f091ac5
parent63f4648b6c6c5efd054cabf1a724f6167ef53fd0
PR15029: Reflect script errors in stapdyn's exit status

This adds a new stapdyn.h function to query the script/module's exit
status.  One wishes session_exit had returned this in the first place...

Tests beginenderror.exp and trycatch.exp were failing on dyninst, and
are now working with this fix.

* runtime/dyninst/stapdyn.h: Declare stp_dyninst_exit_status();
* runtime/dyninst/runtime.h: Implement it from a static global.
* runtime/dyninst/transport.c: Set that global on "ERROR:" messages,
  like stapio does with its error_detected flag.
* stapdyn/mutator.cxx (mutator::exit_status): New, looks for the new
  function in the module to get status.
* stapdyn/stapdyn.cxx (main): Call mutator::exit_status().
runtime/dyninst/runtime.h
runtime/dyninst/stapdyn.h
runtime/dyninst/transport.c
stapdyn/mutator.cxx
stapdyn/mutator.h
stapdyn/stapdyn.cxx
This page took 0.04487 seconds and 5 git commands to generate.