On Sun, Mar 18, 2007 at 11:07:04PM EST, Roberto C. Sánchez wrote: > On Sun, Mar 18, 2007 at 11:53:51PM -0500, cga2000 wrote: > > Could somebody advise on using gdb on a debian system? > > > > Currently whenever I need to take an insider look at what the code is > > really doing, I try to locate the source of the same version, download > > the .tar.gz .. run configure/make and execute the version that I built > > from source: > > > > $ gdb ./program > > > > Is there any way I could cause debian to systematically install the > > source that corresponds to the packaged binaries? > > > What you really need are the -dbg variants for your packages. Not all > packages have a -dbg variant available, but many of the bigger and more > popular packages do. The -dbg packages are compiled with extra > debugging information, allowing you to run them in gdb and get useful > information.
Saw that but then, $ apt-cache search dbg | wc .. gives me just over 100 hits. And with 2-3 exceptions all of them are libraries. Seems I missed something? Thanks, cga