Blame SOURCES/gdb-libexec-add-index.patch

99f0af
diff --git a/gdb/contrib/gdb-add-index.sh b/gdb/contrib/gdb-add-index.sh
99f0af
index cca7153..73181ec 100755
99f0af
--- a/gdb/contrib/gdb-add-index.sh
99f0af
+++ b/gdb/contrib/gdb-add-index.sh
99f0af
@@ -21,6 +21,11 @@
99f0af
 GDB=${GDB:=gdb}
99f0af
 OBJCOPY=${OBJCOPY:=objcopy}
99f0af
 
99f0af
+GDB2=/usr/libexec/gdb
99f0af
+if test -x $GDB2 && ! which $GDB &>/dev/null; then
99f0af
+    GDB=$GDB2
99f0af
+fi
99f0af
+
99f0af
 myname="${0##*/}"
99f0af
 
99f0af
 if test $# != 1; then