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

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