Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to get glibc's debug symbol available?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
refugee
n00b
n00b


Joined: 10 Dec 2010
Posts: 4

PostPosted: Tue Dec 28, 2010 3:14 am    Post subject: How to get glibc's debug symbol available? Reply with quote

When I debug a program whose bug occurs in the glibc's pthread_barrier_XXX, I want to use gdb to step into the glibc. However there is no debug package of glibc on gentoo, but other distributions such as debian have. So I get the question of the title, can anybody help me?
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21619

PostPosted: Tue Dec 28, 2010 3:29 am    Post subject: Reply with quote

There is nothing special about sys-libs/glibc with regard to debug information. Like any other package, you must instruct Portage to retain its debug symbols if you want to have them around for later. The technique for this is explained in How to get meaningful backtraces in Gentoo.
Back to top
View user's profile Send private message
refugee
n00b
n00b


Joined: 10 Dec 2010
Posts: 4

PostPosted: Tue Dec 28, 2010 3:34 am    Post subject: Reply with quote

thank you very much, I'll take a look at it.
Hu wrote:
There is nothing special about sys-libs/glibc with regard to debug information. Like any other package, you must instruct Portage to retain its debug symbols if you want to have them around for later. The technique for this is explained in How to get meaningful backtraces in Gentoo.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum