Software development

/etc/portage/env/debugsyms.conf

This file is suggested within the Gentoo wiki, to help with software development and for debugging purposes:

Possible content of the file:

# https://wiki.gentoo.org/wiki/Debugging#Install_debugging_information
CFLAGS="${CFLAGS} -ggdb"
CXXFLAGS="${CXXFLAGS} -ggdb"
FEATURES="${FEATURES} splitdebug compressdebug -nostrip"
USE="debug"

See also

Portage and software development

The power of portage makes Gentoo probably the very best distribution to use for software development. This article is not about the development of portage itself. We will endeavour to collect tips and recipes about using portage's features to help a developer in its work.

Backtraces and symbols for gdb and valgrind

1) Create the file /etc/portage/env/debugsyms.conf.
2) Add a line in /etc/portage/package.env for the packgage you want, e.g.:

Syndicate content