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

Re: How to use -dbg packages (and specifically libncurses5-dbg) ?



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. It only contains the debugging symbols that were removed from
libncurses5.

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

#0  0x00007f0d65f47ea0 in __read_nocancel () at ../sysdeps/unix/syscall-template.S:82
#1  0x00007f0d6620283a in fifo_push (win=0x8f1f90, result=<value optimized out>, use_meta=<value optimized out>) at /home/csmall/debian/ncurses/ncurses/ncurses/base/lib_getch.c:275
#2  kgetch (win=0x8f1f90, result=<value optimized out>, use_meta=<value optimized out>) at /home/csmall/debian/ncurses/ncurses/ncurses/base/lib_getch.c:669
#3  _nc_wgetch (win=0x8f1f90, result=<value optimized out>, use_meta=<value optimized out>) at /home/csmall/debian/ncurses/ncurses/ncurses/base/lib_getch.c:500
#4  0x00007f0d66202fe7 in wgetch (win=0x8f1f90) at /home/csmall/debian/ncurses/ncurses/ncurses/base/lib_getch.c:630
#5  0x0000000000421f40 in ?? ()
#6  0x0000000000422115 in ?? ()
#7  0x00000000004223ed in ?? ()
#8  0x0000000000422a96 in ?? ()
#9  0x000000000041217d in ?? ()
#10 0x0000000000412d5c in ?? ()
#11 0x00007f0d65ea3c4d in __libc_start_main (main=<value optimized out>, argc=<value optimized out>, ubp_av=<value optimized out>, init=<value optimized out>, fini=<value optimized out>,
    rtld_fini=<value optimized out>, stack_end=0x7fff819c90a8) at libc-start.c:228
#12 0x0000000000403789 in ?? ()
#13 0x00007fff819c90a8 in ?? ()
#14 0x000000000000001c in ?? ()
#15 0x0000000000000001 in ?? ()
#16 0x00007fff819ca7f8 in ?? ()
#17 0x0000000000000000 in ?? ()


Reply to: