teknoraver / rpms / rpm

Forked from rpms/rpm 4 months ago
Clone

Blame rpm-4.8.1-find-debuginfo-gdb-index.patch

Panu Matilainen 5e5b68
commit 9570a7f6af152e2f1e63181ad8a20d12a10e3c5b
Panu Matilainen 5e5b68
Author: Tom Tromey <tromey@redhat.com>
Panu Matilainen 5e5b68
Date:   Mon Aug 9 15:22:51 2010 +0300
Panu Matilainen 5e5b68
Panu Matilainen 5e5b68
    Create GDB index from find-debuginfo if possible (RhBug:617166)
Panu Matilainen 5e5b68
    - Details in https://fedoraproject.org/wiki/Features/GdbIndex
Panu Matilainen 5e5b68
Panu Matilainen 5e5b68
diff --git a/scripts/find-debuginfo.sh b/scripts/find-debuginfo.sh
Panu Matilainen 5e5b68
index 01456da..3ada962 100644
Panu Matilainen 5e5b68
--- a/scripts/find-debuginfo.sh
Panu Matilainen 5e5b68
+++ b/scripts/find-debuginfo.sh
Panu Matilainen 5e5b68
@@ -207,6 +207,8 @@ while read nlinks inum f; do
Panu Matilainen 5e5b68
     $strict && exit 2
Panu Matilainen 5e5b68
   fi
Panu Matilainen 5e5b68
 
Panu Matilainen 5e5b68
+  [ -x /usr/bin/gdb-add-index ] && /usr/bin/gdb-add-index "$f" > /dev/null 2>&1
Panu Matilainen 5e5b68
+
Panu Matilainen 5e5b68
   # A binary already copied into /usr/lib/debug doesn't get stripped,
Panu Matilainen 5e5b68
   # just has its file names collected and adjusted.
Panu Matilainen 5e5b68
   case "$dn" in