Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 28243 - add USE debug to sys-libs/glibc
Summary: add USE debug to sys-libs/glibc
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-09 01:18 UTC by Alexander Gabert (RETIRED)
Modified: 2003-09-11 08:06 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Gabert (RETIRED) gentoo-dev 2003-09-09 01:18:23 UTC
having a new ebuild sys-devel/glibc-debug with debugging symbols in it would 
make it easier for people to do debugging where calls into libc return 
segfaults.

CFLAGS="-g -ggdb" does not work for the original sys-libs/glibc, it remains 
without debugging symbols

Reproducible: Always
Steps to Reproduce:
1. CFLAGS="-g -ggdb" emerge sys-libs/glibc
2. gcc -g -ggdb -o hello hello.c
3. gdb hello

Actual Results:  
no debugging symbols in glibc because the CFLAGS somewhere get lost

Expected Results:  
debugging symbols in glibc to trace calls into libc and back

not necessary
Comment 1 SpanKY gentoo-dev 2003-09-09 08:07:03 UTC
umm you have to enable FEATURES=nostrip otherwise the libraries are stripped before the merge ...

a better request would be to add USE flag support for debug
Comment 2 Martin Schlemmer (RETIRED) gentoo-dev 2003-09-11 08:06:57 UTC
Yep, you need nostrip to FEATURES:

 # FEATURES="nostrip" CFLAGS="-g -ggdb" emerge glibc