summaryrefslogtreecommitdiffstats
path: root/sim-scripts/gdb-sim-run.in
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2009-04-02 19:34:01 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2009-04-02 19:34:01 +0000
commitd64a9244abf8210bc61df98155f714d832b74804 (patch)
tree48e4f76a61bfa5f49daac969af72da05a1fdd2f1 /sim-scripts/gdb-sim-run.in
parent2009-04-01 Joel Sherrill <joel.sherrill@OARcorp.com> (diff)
downloadrtems-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-xsim-scripts/gdb-sim-run.in10
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
#