Update gdb_launch script for relative path.

This commit is contained in:
jief666 2021-03-28 18:37:19 +03:00
parent 072a0a5d26
commit e143fe8abd

View File

@ -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_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"` SCRIPT_DIR=`dirname "$SCRIPT_ABS_FILENAME"`
SHELL_PWD=$PWD
OSTYPE=`uname -s` OSTYPE=`uname -s`
#echo $OSTYPE #echo $OSTYPE
@ -19,6 +19,11 @@ else
clover_debug_file="${1%.*}".debug clover_debug_file="${1%.*}".debug
fi fi
if [[ "$clover_debug_file" != '/'* ]]
then
clover_debug_file="$SHELL_PWD"/"$clover_debug_file"
fi
if ! [ -f "$clover_debug_file" ] if ! [ -f "$clover_debug_file" ]
then then
echo Debug file "$clover_debug_file" doesn\'t exist echo Debug file "$clover_debug_file" doesn\'t exist