Comment 1 for bug 65283

Revision history for this message
Karl Hegbloom (karl.hegbloom) wrote : Re: Make application -dbgsym packages Recommend: depended libraries

I like that idea. I would also like the application package itself to Suggest it's own -dbgsym, perhaps...

There at least ought to be an easy way to quickly install an application's -dbgsym along with all library -dbgsym packages, transitively. Given the 'Suggests:' headers for the -dbgsym packages themselves, is there already an 'apt-get' command line that could do it? Hmmm... I see no command line option for having 'apt-get' install the 'Suggests:', and find no documentation for a configuration option to do so. 'aptitude' has the "--with(out)-recommends" option, but none for 'Suggests:'. It probably has a configuration option.

Given that, I'd say a new tool needs to be written, if nothing but a wrapper around 'apt-get' or 'aptitude'. 'apport' is great, but afaik, has no command line tool I can use to get the dbgsym packages I need to attempt a debug myself should I choose to do so.

Also pertinent to this... where is the HOWTO that explains how I should arrange my source code directory where I use either 'apt-get source' or (perhaps better and better integrated or someday rolled into 'apt-get' itself)... , 'apt-src' --- to get the matching source package, and then how to configure 'gdb' so that it finds those sources?

I think that the source location is embedded in the debug information already, and that gdb has a way to substitute parts of a path with another or something... if it could blat off an unknown-in-advance length of path from the front and paste on the prefix I give it, that would be great. I'd maybe also like to not have to put all of the source packages I have into the same subdirectory, preferring to organize them according to ... whatever, like maybe "Video", "ProgLang", or somebody else's favorite layout, one or more levels deep, probably all starting at the same tree though, right? "~/src/".

So, supplying a nice .gdbinit for that would be useful, if SOMEBODY will write one down really quick.