[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: debug packages?



On Thu, Feb 02, 2006 at 07:14:28PM -0500, Joe Smith wrote:
> 
> "Kevin B. McCarty" wrote in message [🔎] 43E0C6DF.7000505@princeton.edu">news:[🔎] 43E0C6DF.7000505@princeton.edu...
> >Also (and this is quite a dumb question), when the end user wants to use
> >the debug package, what magical options does s/he give to gdb when
> >running a program so that gdb knows where to find the debugging
> >information?  Is additional setup needed when the thing to be debugged
> >is a shared library used by the program that the user directly executes?
> 
> If everything is set up right then this is automatic. The program/lib would 
> cantain a pointer to the file
> containing the symbols which would be looked for in the same directory as 
> the program/lib, the .debug subdirectory,
> or some sort of location inside the "globaldebugdirectory". I'm not sure 
> where dh_strip has these files installed, but
> if it is in any of those places gdb should find it.

>From the manual page op dh_strip

       -k, --keep-debug
           Debug symbols will be retained, but split into an independent file
           in usr/lib/debug/ in the package build directory.  --dbg-package is
           easier to use than this option, but this option is more flexible.


Cheers
Geert Stappers

P.S.
Joe, send my regards to John
<grin/>



Reply to: