View previous topic :: View next topic |
Author |
Message |
refugee n00b
Joined: 10 Dec 2010 Posts: 4
|
Posted: Tue Dec 28, 2010 3:14 am Post subject: How to get glibc's debug symbol available? |
|
|
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 |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21619
|
Posted: Tue Dec 28, 2010 3:29 am Post subject: |
|
|
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 |
|
|
refugee n00b
Joined: 10 Dec 2010 Posts: 4
|
Posted: Tue Dec 28, 2010 3:34 am Post subject: |
|
|
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 |
|
|
|