This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
How to build Debug version of glibc
- From: "Chen (é) Jun (å)" <chjfth at gmail dot com>
- To: libc-help at sourceware dot org
- Date: Mon, 08 Dec 2008 09:33:45 +0800
- Subject: How to build Debug version of glibc
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:content-type :content-transfer-encoding; bh=Vltwn4xT8kbVhavqrR8gmNoKY1yxtFCY1qrg58FWzt4=; b=CJlsWKD4sg1KGNKupiy+lQi/41yAEYQLoCaJv1gqNnorcBZCRYoyfBUeF/TDos/kQO 3tx0Yf1IkUz5ijPOvWNgBqk9jqmaIoMGgUsY8/h5CqreQL3OUIIGao4zwIZjJ6SlhJ/d UgOb3OLEfsrl23l9ZO6pJLIRlybNKwjs2v9Sc=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; b=BjKq3qWClCZ2jE8holAQraKybw6FsRPYAGU4hi5w4v0zVEzBWMEme5QsELlgTFL9iw +mz5fUTsfNIcyttfrEjh0Y+zrTOaIsZexET82TfDQbhD2hposM3qQHB9lrnlE15pHZsr 6BMbsRvYo1Q/7R2IdvpovMWtuxOhMJk4xiIqk=
Hi everyone, I'm new to this mailing list. Happy to see this mailing
list for helping average glibc users, There wasn't such a list one year
before, was it?
As I know, most, if not all, Linux distributions ship with Release
version of glibc, so I can not debug into the libc dll. I tried it with
KDbg in SuSE Linux 10.1, so I know this.
Now I wish to build a Debug version of glibc myself, but the INSTALL
file in glibc's source archive says almost nothing about "building a
debug version". Can any glibc guru here tell me the correct way to:
1. Build a debug version and install it on a existing Linux system.
2.When calling gcc to link an executable, e.g. `` gcc -o hello hello.o
'' , How to make gcc link that debug version of glibc to hello.
Some more questions I'm interested:
1. For glibc developers themselves, do they build debug versions of glibc?
2. If they do, how do they debug it, use command line gdb, or a GUI
frontend of gdb? If later, which do they use?
Thanks in advance.