diff --git a/Qemu/gdb_launch b/Qemu/gdb_launch index 299d0b103..b8983b7a0 100755 --- a/Qemu/gdb_launch +++ b/Qemu/gdb_launch @@ -1,6 +1,6 @@ SCRIPT_ABS_FILENAME=`LC_ALL=en_US.ISO8859-1 perl -e 'use Cwd "abs_path";print abs_path(shift)' "${BASH_SOURCE[0]}"` SCRIPT_DIR=`dirname "$SCRIPT_ABS_FILENAME"` - +SHELL_PWD=$PWD OSTYPE=`uname -s` #echo $OSTYPE @@ -19,6 +19,11 @@ else clover_debug_file="${1%.*}".debug fi +if [[ "$clover_debug_file" != '/'* ]] +then + clover_debug_file="$SHELL_PWD"/"$clover_debug_file" +fi + if ! [ -f "$clover_debug_file" ] then echo Debug file "$clover_debug_file" doesn\'t exist