summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2010-08-09 15:22:51 +0300
committerPanu Matilainen <pmatilai@redhat.com>2010-08-09 15:28:36 +0300
commit9570a7f6af152e2f1e63181ad8a20d12a10e3c5b (patch)
treee83c4ab07c9f1960f5b932c83f3f8bdae8119b4c /scripts
parent7f220202f20c69d6f3fd957325cdbe692bbabedd (diff)
downloadrpm-9570a7f6af152e2f1e63181ad8a20d12a10e3c5b.tar.gz
rpm-9570a7f6af152e2f1e63181ad8a20d12a10e3c5b.tar.bz2
rpm-9570a7f6af152e2f1e63181ad8a20d12a10e3c5b.zip
Create GDB index from find-debuginfo if possible (RhBug:617166)
- Details in https://fedoraproject.org/wiki/Features/GdbIndex
Diffstat (limited to 'scripts')
-rw-r--r--scripts/find-debuginfo.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/find-debuginfo.sh b/scripts/find-debuginfo.sh
index 01456dabc..3ada962db 100644
--- a/scripts/find-debuginfo.sh
+++ b/scripts/find-debuginfo.sh
@@ -207,6 +207,8 @@ while read nlinks inum f; do
$strict && exit 2
fi
+ [ -x /usr/bin/gdb-add-index ] && /usr/bin/gdb-add-index "$f" > /dev/null 2>&1
+
# A binary already copied into /usr/lib/debug doesn't get stripped,
# just has its file names collected and adjusted.
case "$dn" in