From 856d715d5b8db51aeae349c8e5bde2cfbd55bdf7 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Fri, 27 Jul 2012 17:38:40 +0000 Subject: Create GDB index from find-debuginfo if possible (RhBug:617166) - Details in https://fedoraproject.org/wiki/Features/GdbIndex (rpm.org, Tom Tromey 2010-08-09) --- NEWS | 2 ++ find-debuginfo.sh | 2 ++ 2 files changed, 4 insertions(+) diff --git a/NEWS b/NEWS index d78adbf..9d34987 100644 --- a/NEWS +++ b/NEWS @@ -3,6 +3,8 @@ (inspirated from mdv (pok)) - sync find-debuginfo.sh with upstream rpm.org: o add -r flag to find-debuginfo.sh to invoke eu-strip --reloc-debug-sections + (Mark Wielaard, 2011-05-25) + o create GDB index from find-debuginfo if possible (Tom Tromey, RhBug:617166) o drop useless rpm5 bits (less divergence with upstream) o fix behavior on cross-directory hardlinks (RhBug:618426) - kill unused find-provides.perl.in diff --git a/find-debuginfo.sh b/find-debuginfo.sh index 98cc45b..fe6a4da 100755 --- a/find-debuginfo.sh +++ b/find-debuginfo.sh @@ -228,6 +228,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 -- cgit v1.2.1