You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
571 B
24 lines
571 B
2 years ago
|
From FEDORA_PATCHES Mon Sep 17 00:00:00 2001
|
||
|
From: Fedora GDB patches <invalid@email.com>
|
||
|
Date: Fri, 27 Oct 2017 21:07:50 +0200
|
||
|
Subject: gdb-libexec-add-index.patch
|
||
|
|
||
|
;; Fix gdb-headless /usr/bin/ executables (BZ 1390251).
|
||
|
;;=fedora
|
||
|
|
||
|
diff --git a/gdb/contrib/gdb-add-index.sh b/gdb/contrib/gdb-add-index.sh
|
||
|
--- 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##*/}"
|
||
|
|
||
|
dwarf5=""
|