diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-04-02 19:34:01 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-04-02 19:34:01 +0000 |
commit | d64a9244abf8210bc61df98155f714d832b74804 (patch) | |
tree | 48e4f76a61bfa5f49daac969af72da05a1fdd2f1 /sim-scripts/gdb-sim-run.in | |
parent | 2009-04-01 Joel Sherrill <joel.sherrill@OARcorp.com> (diff) | |
download | rtems-testing-d64a9244abf8210bc61df98155f714d832b74804.tar.bz2 |
2009-04-02 Joel Sherrill <joel.sherrill@OARcorp.com>
* gdb-sim-run.in, gdb-sim.in: Add check_status.
Diffstat (limited to 'sim-scripts/gdb-sim-run.in')
-rwxr-xr-x | sim-scripts/gdb-sim-run.in | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sim-scripts/gdb-sim-run.in b/sim-scripts/gdb-sim-run.in index 4bcf249..b23ba96 100755 --- a/sim-scripts/gdb-sim-run.in +++ b/sim-scripts/gdb-sim-run.in @@ -53,6 +53,16 @@ warn() { [ "$1" ] && prerr $* } +check_status() +{ + if [ $1 -ne 0 ] ; then + shift + echo "FAILED: " "$*" >&2 + exit 1 + fi +} + + # # process the options # |