You are not logged in.

#1 2013-12-29 14:09:34

Thorsten Reinbold
Member
From: Germany
Registered: 2011-12-06
Posts: 353

[Solved] Recompile Software with debugging symbols?

Has anyone an idea how to compile darktable with debugging symbols? I've grabbed the sources from the arch package and added the strings

export CFLAGS="$CFLAGS -O0 -fbuiltin -g"
export CXXFLAGS="$CXXFLAGS -O0 -fbuiltin -g"

to the PKGBUILD as the arch wiki described in the "Step by step debugging guide", but it don't seems to work proberly. I can't obtain a proper backtrace.

"gdb darktable" only gives me the message:

Reading symbols from /usr/bin/darktable...(no debugging symbols found)

What's my fault?

Last edited by Thorsten Reinbold (2013-12-29 14:40:22)

Offline

#2 2013-12-29 14:11:55

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [Solved] Recompile Software with debugging symbols?

What about ' options=('!strip')'?

Offline

#3 2013-12-29 14:14:53

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,595
Website

Re: [Solved] Recompile Software with debugging symbols?


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#4 2013-12-29 14:30:10

Thorsten Reinbold
Member
From: Germany
Registered: 2011-12-06
Posts: 353

Re: [Solved] Recompile Software with debugging symbols?

Sorry, that was really stupid. Thanks for the hints, I was able to compile now. But the next problem is knocking on the door: when I try to get a backtrace, I get a "No stack."-message from gdb. Google wasn't helpful with this and those are my first steps in debugging. Maybe some has an Idea? I only need a full backtrace for an upstream bugreport.

Edit: got it. There was a gdb Zombie in the background.


Solved!

Last edited by Thorsten Reinbold (2013-12-29 14:40:04)

Offline

Board footer

Powered by FluxBB