How to use debug libraries on ubuntu

后端 未结 4 1460
孤城傲影
孤城傲影 2020-12-08 17:38

My current problem is with libwebkitgtk-3.0-0, but I guess this problem is generic enough.

My application is crashing somewhere in the webkit code. My assumption is

4条回答
  •  旧巷少年郎
    2020-12-08 18:12

    @Eliah's answer tells how to get symbols in a convenient way.

    The question remains, "how do I get the exact source code?".

    I normally do apt-get source which is well and good except then I must manually tell gdb dir and woe betide if it is a package like eglibc where one must figure out that the path references are from the nss subdirectory, not the root.

    On RHEL one simply does e.g. yum install --enable-repo rhel-debuginfo libX11-debuginfo (just yum install libX11-debuginfo on CentOS 7) and instantly you get full symbols and source in gdb with no extra messing around. I'm still looking for that convenience on Ubuntu.

提交回复
热议问题