summaryrefslogtreecommitdiffstats
path: root/rungdb
blob: c23e783cc063f4484791476edf688b6bfdadcc72 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

export OSLAB_PATH=$(dirname `which $0`)

if [ ! -e "$OSLAB_PATH/hdc/umounted" ]; then
	echo umount hdc first
	sudo umount $OSLAB_PATH/hdc
	if [ "$?" != "0" ]; then
		exit
	fi
fi

gdb -x $OSLAB_PATH/gdb-cmd.txt $OSLAB_PATH/src/tools/system