[arch-general] Howto compile in debugging symbols with makepks so I can use gdb?
Guys, Still chasing the keepassx problem. There are no debugging symbols in the package so I used ABS to build from source, but of course there is no debugging there either. What's the trick to compile so I can get a meaningful gdb backtrace? -- David C. Rankin, J.D.,P.E. Rankin Law Firm, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 Telephone: (936) 715-9333 Facsimile: (936) 715-9339 www.rankinlawfirm.com
On Wed, 2009-11-11 at 09:00 -0600, David C. Rankin wrote:
Guys,
Still chasing the keepassx problem. There are no debugging symbols in the package so I used ABS to build from source, but of course there is no debugging there either. What's the trick to compile so I can get a meaningful gdb backtrace?
in the PKGBUILD: options=(!strip) in the build() function on top: export CFLAGS="-g" export CXXFLAGS="-g" That should compile with default optimizations and includes debug symbols, which shouldn't get stripped before packing the package together.
On Wednesday 11 November 2009 16:00:35 David C. Rankin wrote:
Guys,
Still chasing the keepassx problem. There are no debugging symbols in the package so I used ABS to build from source, but of course there is no debugging there either. What's the trick to compile so I can get a meaningful gdb backtrace?
Hi, try to add options=(!strip) to the PKGBUILD so makepkg won't remove the debug symbols Dan -- --------------------------------- Dan Vrátil vratil@progdansoft.com ICQ 249163429 Jabber progdan@jabber.cz Tel. +420 732 326 870 http://www.progdan.homelinux.net
participants (3)
-
Dan Vrátil
-
David C. Rankin
-
Jan de Groot