qutebrowser / qt-debug-pkgbuild

Archlinux PKGBUILDs for Qt5/PyQt5 with debugging enabled
19 stars 7 forks source link

gdb can't find not source code #29

Open coiby opened 4 years ago

coiby commented 4 years ago

The built package doesn't contain the source code. Thus gdb would complain as follows,

(gdb) n 8056 kernel/qwidget.cpp: No such file or directory.

I noticed if I use OPTIONS+=(debug strip) for makepkg, a seperate package qt5-base-debug will be built and installing this package will put the source code into /usr/src/debug/qtbase-everywhere-src-5.14.2/src/. So makepkg can avoid this issue.

The-Compiler commented 4 years ago

So makepkg can avoid this issue.

I don't follow. These packages are built via makepkg.

coiby commented 4 years ago

On Sun, Apr 26, 2020 at 03:36:03AM -0700, Florian Bruhin wrote:

So makepkg can avoid this issue.

I don't follow. These packages are built via makepkg.

I'm not sure if some changes in the makepkg.conf cause makepkg to behave otherwise. Based on my experience, if I simply add OPTIONS+=(debug strip), makepkg will build a package ({package_name}-debug) which put the source code under /usr/src/debug/{package_name}. Btw, when I tried to use qt5-webengine's PKDBUILD in the repo, makepkg gave the following warning,

WARNING: Package contains reference to $srcdir

This could be reason why gdb can't find the source code.