/vqdr/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/vqdr/trunk

« back to all changes in this revision

Viewing changes to run_gdb.sh

  • Committer: Gustav Hartvigsson
  • Date: 2022-06-01 12:14:52 UTC
  • Revision ID: gustav.hartvigsson@gmail.com-20220601121452-ntu94w67q3dhhfeq
More work torwards inperementing the parser.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/env bash
 
2
 
 
3
# Get the directory of this script.
 
4
 
 
5
CWD_SOURCE="${BASH_SOURCE[0]}"
 
6
while [ -h "$CWD_SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink
 
7
  DIR="$( cd -P "$( dirname "$CWD_SOURCE" )" >/dev/null 2>&1 && pwd )"
 
8
  CWD_SOURCE="$(readlink "$CWD_SOURCE")"
 
9
  [[ $SCWD_OURCE != /* ]] && CWD_SOURCE="$DIR/$CWD_SOURCE" # if $SOURCE was a relative symlink, we need to resolve it relative to the path where the symlink file was located
 
10
done
 
11
CWD="$( cd -P "$( dirname "$CWD_SOURCE" )" >/dev/null 2>&1 && pwd )"
 
12
 
 
13
declare -a SOURCES_DIRS=(
 
14
  "src/"
 
15
  "src/common/"
 
16
  "src/libvqdr/"
 
17
  "src/libvqdr/function/"
 
18
  "src/libvqdr/value/"
 
19
  "src/libvqdr/operator/"
 
20
  "build/libvqdr.so.p/"
 
21
  "build/libvqdr.so.p/src/utils/"
 
22
  "build/libvqdr.so.p/src/"
 
23
  "build/libvqdr.so.p/src/libvqdr/"
 
24
  "build/libvqdr.so.p/src/libvqdr/function/"
 
25
  "build/libvqdr.so.p/src/libvqdr/operator/"
 
26
  "build/libvqdr.so.p/src/libvqdr/value/"
 
27
  "build/tests/"
 
28
  "build/tests/test1.p/"
 
29
  "build/tests/test2.p/"
 
30
  "build/tests/utils/"
 
31
)
 
32
 
 
33
declare -a SOURCES_DIRS2=()
 
34
 
 
35
# build param string
 
36
PARAM_STR=""
 
37
 
 
38
for str in "${SOURCES_DIRS[@]}"; do
 
39
  PARAM_STR+=" --directory "
 
40
  PARAM_STR+="${str}"
 
41
done
 
42
 
 
43
 
 
44
for val in "${SOURCES_DIRS[@]}"
 
45
do
 
46
  SOURCES_DIRS2+=("$CWD/$val")
 
47
done
 
48
 
 
49
# for val in "${SOURCES_DIRS2[@]}"
 
50
# do
 
51
#  echo $val
 
52
#  if [ ! -d $val ]
 
53
#  then
 
54
#    echo "could not find it."
 
55
#  fi
 
56
# done
 
57
 
 
58
gdb $PARAM_STR $@