You are not logged in.
I need to debug a program called tenace [1] which I maintain in AUR [2]. My question is how do I change the FLAGS to add debug (gdb) capabilities. The program is written in C.
This is the current PKGBUILD [3]
gdb reads:
Reading symbols from tenace...(no debugging symbols found)...done.Please be a little verbose in your answer
I don't know what flag to add not don't I know where I would add flags. It seems to me I want to change this line:
./configure --prefix=/usr LDFLAGS=-lmbut please correct me if I'm wrong.
[1] https://www.df7cb.de/bridge/tenace/
[2] https://aur.archlinux.org/packages/tenace/
[3] https://aur.archlinux.org/packages/te/tenace/PKGBUILD
Last edited by foppe (2014-04-01 22:52:32)
Offline
It looks like the source defaults to including the flag for building anyways. Just add the !strip option to the PKGBUILD to prevent makepkg from stripping the symbols.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Thanks,
Adding
options=('!strip')does what I want it to do. Running gdb gives a backtrace with the function where the error occurs. Those function-names were previously not available.
Marking as SOLVED
Offline