> On Mar 3, 2016, at 3:26 PM, Bryan Hundven wrote: > >> >> On Mar 3, 2016, at 11:26 AM, Thomas De Schampheleire wrote: >> >> On Mon, Feb 8, 2016 at 10:40 AM, Thomas De Schampheleire >> wrote: >>> Hello, >>> >>> What is the 'correct' way to make sure that the libraries of the >>> toolchain (most importantly libc but possibly others) contain >>> debugging symbols, so that debugging an application linked to these >>> libraries works as expected? >>> >>> Toolchains provided by external vendors are configured as such, but it >>> seems that crosstool-ng by default does not. >>> >>> We did not find a global setting for this. As a workaround we applied >>> the following: >>> >>> CT_LIBC_GLIBC_EXTRA_CFLAGS="-g" >>> >>> but it is unclear if this is the 'correct' way or not. >>> >> >> ping? > > Thomas, > > Sorry for the delay, I just saw this email. I’m not sure why I didn’t see the earlier email. > > I need to do a little research, but I’ve CC’d Yann E. Morin in case he knows off hand. > If not, I’ll have a response soon. > > Cheers, > > -Bryan I think it’s fairly accurate to say that there isn’t a global setting, and it seems to be libc specific. So there isn’t a configuration setting besides the one you noted for glibc. For uClibc(-ng), there is CT_LIBC_UCLIBC_DEBUG_LEVEL. And I’m guessing the same solution for glibc for musl-libc and newlib. It would be fairly simple to add debugging options to the other LIBCs so they also have debugging options. -Bryan