August 07, 2004

Debug helper for Gentoo

So you're stuck with a crasher, and a corrupted debug build so you need to check what to rebuild with FEATURES="nostrip" to make sure you get good symbols?


Heres a pretty crude oneliner :


ldd /usr/bin/gossip |cut --delimiter=" " -f 3 |while read F; do readlink -f ${F} ; file `readlink -f ${F}` |grep -vq "not stripped" && qp kg -v -I -f ${F};done



The packages output are the ones that are stripped, the rest are just the libraries, cut the first "readlink -f ${F}" out to remove that verbosity

Posted by spider at August 7, 2004 02:20 PM