On Mon, 7 Aug 2017, Paul Wise wrote: > On Sun, Aug 6, 2017 at 12:14 PM, Stefan Fritsch wrote: > > > Is there some tool that parses /proc/maps and the build-ids fields from > > the apt repository to determine which dbgsym packages to install? > > Not AFAIK but I guess that Fedora probably has a script for this somewhere.
Thanks for the pointer. I didn't find anything for /proc/$$/maps but there is eu-unstrip from elfutils which gives the list of Build-IDs from a core file. I hacked together a perl script that uses that and grep-aptavail to get the list of packages (assuming you already have the correct entries in sources.list). Now, where to put it? Into devscripts? The disadvantage is that devscripts already pulls in quite a few other packages via recommends. But I don't have a better idea. Unless we want to include it in reportbug or something like that? > The service to map build-ids to snapshot.d.o packages is not fully > implemented yet either. > > http://build-id.debian.net/ (code on lw08.d.o) That would be nice. But I don't think I have time to look into that in the forseeable future. Cheers, Stefan