summaryrefslogtreecommitdiffstats
path: root/scripts/t-rex-64-debug-gdb
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/t-rex-64-debug-gdb')
-rwxr-xr-xscripts/t-rex-64-debug-gdb19
1 files changed, 14 insertions, 5 deletions
diff --git a/scripts/t-rex-64-debug-gdb b/scripts/t-rex-64-debug-gdb
index 83ab82e0..da93138c 100755
--- a/scripts/t-rex-64-debug-gdb
+++ b/scripts/t-rex-64-debug-gdb
@@ -1,11 +1,20 @@
#! /bin/bash
export LD_LIBRARY_PATH=`pwd`
-#Add dummy lib in case we don't find it, e.g. there is no OFED installed
-if ldd _t-rex-64 | grep "libibverbs.so" | grep -q "not found"; then
-export LD_LIBRARY_PATH=$PWD:$PWD/dumy_libs
+EXTRA_INPUT_ARGS=""
+
+./trex-cfg $INPUT_ARGS
+RESULT=$?
+
+if [ $RESULT -eq 255 ]; then
+ echo "ERROR encountered while configuring trex system"
+ exit $RESULT
fi
-
-/usr/bin/gdb --args ./_t-rex-64-debug $@
+if [ $RESULT -eq 32 ]; then
+ EXTRA_INPUT_ARGS="--mlx5-so"
+fi
+
+
+/usr/bin/gdb --args ./_t-rex-64-debug $@ $EXTRA_INPUT_ARGS