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

689258
From FEDORA_PATCHES Mon Sep 17 00:00:00 2001
689258
From: Fedora GDB patches <invalid@email.com>
689258
Date: Fri, 27 Oct 2017 21:07:50 +0200
689258
Subject: gdb-libexec-add-index.patch
689258
689258
;; Fix gdb-headless /usr/bin/ executables (BZ 1390251).
689258
;;=fedora
689258
689258
diff --git a/gdb/contrib/gdb-add-index.sh b/gdb/contrib/gdb-add-index.sh
689258
--- a/gdb/contrib/gdb-add-index.sh
689258
+++ b/gdb/contrib/gdb-add-index.sh
689258
@@ -21,6 +21,11 @@
689258
 GDB=${GDB:=gdb}
689258
 OBJCOPY=${OBJCOPY:=objcopy}
689258
 
689258
+GDB2=/usr/libexec/gdb
689258
+if test -x $GDB2 && ! which $GDB &>/dev/null; then
689258
+    GDB=$GDB2
689258
+fi
689258
+
689258
 myname="${0##*/}"
689258
 
689258
 dwarf5=""