diff options
author | 2016-11-13 11:18:28 +0200 | |
---|---|---|
committer | 2016-11-13 15:03:21 +0200 | |
commit | 09c25b01e641a6297ff6732c4db9d1652d4ae707 (patch) | |
tree | 4eb7b2a71eb95d8b5b5cfa6cea5a1011114ffe26 /scripts | |
parent | 009661349aeb0ec39ec8a526ccfa91087e273c31 (diff) |
fix gdb script
Signed-off-by: Hanoh Haim <hhaim@cisco.com>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/t-rex-64-debug-gdb | 7 |
1 files changed, 7 insertions, 0 deletions
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 $@ |