Frédéric Boiteux fboit...@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. It only contains the debugging symbols that were removed from
libncurses5.
At
Hello Timo,
Le 15/09/2010 12:52, Timo Juhani Lindfors a écrit :
Frédéric Boiteux fboit...@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.
Frédéric Boiteux fboit...@calistel.com writes:
It's what I would like to have, but in my gdb session, the symbols /
data aren't available. When you start your gdb, do you have some info
about gdb loading libncurses5 debugging symbols ?
(gdb) shell pidof nano
23506
(gdb) attach 23506
Attaching
On 2010-09-15 12:23 +0200, Frédéric Boiteux wrote:
I'm trying to debug an own C program which dumps a core, inside libncurses5
library.
I'd like to use gdb to debug my program, and so I've installed -dbg packages :
libc6-dbg, libncurses5-dbg, libstdc++-6.4.3-dbg (on a Debian Lenny system),
On 2010-09-15 12:52 +0200, Timo Juhani Lindfors wrote:
Frédéric Boiteux fboit...@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
Le 15/09/2010 13:55, Timo Juhani Lindfors a écrit :
(gdb) shell pidof nano
23506
(gdb) attach 23506
Attaching to process 23506
Reading symbols from /bin/nano...(no debugging symbols found)...done.
Reading symbols from /lib/libncursesw.so.5...Reading symbols from
Sven Joachim svenj...@gmx.de writes:
Or is there something I forgot ?
Not really, the problem is that libncurses5-dbg ships a special debug
version of the library and no detached debugging symbols, unlike other
-dbg packages. This is fixed in Squeeze, though.
Ah, that explains why it worked
Le 15/09/2010 13:55, Sven Joachim a écrit :
On 2010-09-15 12:23 +0200, Frédéric Boiteux wrote:
I'm trying to debug an own C program which dumps a core, inside
libncurses5 library.
I'd like to use gdb to debug my program, and so I've installed -dbg packages
:
libc6-dbg,
On 2010-09-15 14:17 +0200, Frédéric Boiteux wrote:
I've tried :
env LD_LIBRARY_PATH=/usr/lib/debug gdb ecran core.ecran
I'm afraid this cannot work because the crashed process that left the
core file around had used the non-debug version of the library for which
no symbols are available
Le 15/09/2010 14:52, Sven Joachim a écrit :
You have to use it before you start your program, e.g.
$ env LD_LIBRARY_PATH=/usr/lib/debug gdb ecran
Specifying it at link time would also be possible, e.g. by linking with
-rpath=/usr/lib/debug, but don't do this for binaries that you give to
Le 15/09/2010 14:56, Frédéric Boiteux a écrit :
Le 15/09/2010 14:52, Sven Joachim a écrit :
You have to use it before you start your program, e.g.
$ env LD_LIBRARY_PATH=/usr/lib/debug gdb ecran
Specifying it at link time would also be possible, e.g. by linking with
11 matches
Mail list logo