aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/sm-binding-test-gdb.sh
blob: 68fabc74407a1f6e6df6b2a0a32a53df3c58357a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh

echo "launch soundmanager binder test"
cmd=/usr/bin/afb-daemon
libsm="soundmanager-service.so"
port="12345"
token="123456"
if test $1; then
 port=$1
fi
if test $2; then
 token=$2
fi
libpath="/home/root"
arg="--verbose --verbose --verbose --port=${port} --token=${token} --binding=${libpath}/${libsm}"
echo "gdb $cmd $arg"
gdb $cmd
echo $! $?
if(test $! -gt 0); then
 echo "success to launch"
fi