| Summary: | Portage, gdb and glibc do not provide symbols for all functions | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Robert Bradbury <robert.bradbury> |
| Component: | [OLD] Development | Assignee: | Gentoo Toolchain Maintainers <toolchain> |
| Status: | RESOLVED INVALID | ||
| Severity: | normal | CC: | jer |
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | x86 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
|
Description
Robert Bradbury
2009-06-09 02:32:47 UTC
for the first issue, FEATURES=installsources (see man 5 make.conf) may be what you're looking for. it requires dev-util/debugedit be installed. I am still in the midst of recompiling a large chunk of the system after following Remi's instructions for upgrading libxcb. Preliminary tests seem to indicate that the "installsources" FEATURES option does what I want. It would be *nice* if the documentation actually said "what" it does. Currently it appears that the source is somehow packaged into the package.debug files in /usr/lib/debug. (Is there a special section in the debug files for package source? Is the source compressed in any way? Can gdb deal with compressed .debug files (e.g. package.debug.bz2)?) However the same preliminary tests seem to indicate that Problem #2 still exists. If I compile a very simple program with dummy calls to malloc() and read(), and set breakpoints at those functions, I can "list malloc" but not "list read". so there is still something wrong with building glibc for debugging. the make.conf man page already documents the two relevant FEATURES as for inability to poke glibc internals, things are compiled with optimization and misbehavior is the norm |