From 09c25b01e641a6297ff6732c4db9d1652d4ae707 Mon Sep 17 00:00:00 2001 From: Hanoh Haim Date: Sun, 13 Nov 2016 11:18:28 +0200 Subject: fix gdb script Signed-off-by: Hanoh Haim --- scripts/t-rex-64-debug-gdb | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'scripts/t-rex-64-debug-gdb') diff --git a/scripts/t-rex-64-debug-gdb b/scripts/t-rex-64-debug-gdb index 1e019407..83ab82e0 100755 --- a/scripts/t-rex-64-debug-gdb +++ b/scripts/t-rex-64-debug-gdb @@ -1,4 +1,11 @@ #! /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 +fi + + /usr/bin/gdb --args ./_t-rex-64-debug $@ -- cgit 1.2.3-korg