2017-12-08 04:31:26 +00:00
|
|
|
From 65eeeb0ebc2b0fdd57cf80cf4d361859988fa902 Mon Sep 17 00:00:00 2001
|
2017-12-04 19:24:00 +00:00
|
|
|
From: Fedora GDB patches <invalid@email.com>
|
|
|
|
Date: Fri, 27 Oct 2017 21:07:50 +0200
|
|
|
|
Subject: gdb-libexec-add-index.patch
|
|
|
|
|
|
|
|
FileName: gdb-libexec-add-index.patch
|
|
|
|
|
2017-12-08 04:31:26 +00:00
|
|
|
;; Fix gdb-headless /usr/bin/ executables (BZ 1390251).
|
|
|
|
;;=fedora
|
|
|
|
---
|
|
|
|
gdb/contrib/gdb-add-index.sh | 5 +++++
|
|
|
|
1 file changed, 5 insertions(+)
|
|
|
|
|
2016-10-31 20:08:30 +00:00
|
|
|
diff --git a/gdb/contrib/gdb-add-index.sh b/gdb/contrib/gdb-add-index.sh
|
2017-12-08 04:31:26 +00:00
|
|
|
index 0cd4ce3c9d..c34058d1d6 100755
|
2016-10-31 20:08:30 +00:00
|
|
|
--- a/gdb/contrib/gdb-add-index.sh
|
|
|
|
+++ b/gdb/contrib/gdb-add-index.sh
|
|
|
|
@@ -21,6 +21,11 @@
|
|
|
|
GDB=${GDB:=gdb}
|
|
|
|
OBJCOPY=${OBJCOPY:=objcopy}
|
|
|
|
|
|
|
|
+GDB2=/usr/libexec/gdb
|
|
|
|
+if test -x $GDB2 && ! which $GDB &>/dev/null; then
|
|
|
|
+ GDB=$GDB2
|
|
|
|
+fi
|
|
|
|
+
|
|
|
|
myname="${0##*/}"
|
|
|
|
|
|
|
|
if test $# != 1; then
|
2017-12-08 04:31:26 +00:00
|
|
|
--
|
|
|
|
2.14.3
|
|
|
|
|