summaryrefslogtreecommitdiffstats
path: root/scripts/t-rex-64-debug-gdb
blob: da93138c90a9c0f8298ad3a3a915f26b15504390 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#! /bin/bash
export LD_LIBRARY_PATH=`pwd`

EXTRA_INPUT_ARGS=""

./trex-cfg $INPUT_ARGS
RESULT=$?

if [ $RESULT -eq 255 ]; then
  echo "ERROR encountered while configuring trex system"
  exit $RESULT
fi

if [ $RESULT -eq 32 ]; then
  EXTRA_INPUT_ARGS="--mlx5-so"
fi


/usr/bin/gdb --args ./_t-rex-64-debug $@ $EXTRA_INPUT_ARGS