Re: How to use -dbg packages (and specifically libncurses5-dbg) ?
On 2010-09-15 12:52 +0200, Timo Juhani Lindfors wrote:
> Frédéric Boiteux <fboiteux@calistel.com> writes:
>> Does I have to redo the compilation before to test my program with
>> libncurses5-dbg debug library ?
>
> No. libncurses5-dbg is not a library, it does not even contain
> code.
This is wrong.
> It only contains the debugging symbols that were removed from
> libncurses5.
Again wrong, in Lenny it does _not_ contain debugging symbols (but it
does in Squeeze). In both Lenny and Squeeze it contains a special
version of the library built with features that help debugging
(i.e. it's configured with "--with-trace").
> At least the following works for me:
>
> 0) sudo aptitude install libncursesw5-dbg
> 1) start nano
> 2) start gdb
> 3) shell pidof nano
> 4) attach <that pid>
> 5) bt
Will only work in Squeeze, in Lenny you need to set
LD_LIBRARY_PATH=/usr/lib/debug for that to be useful.
Sven
Reply to: