This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See crosstool-NG for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Building toolchain libraries with debugging symbols


> On Mar 3, 2016, at 3:26 PM, Bryan Hundven <bryanhundven@gmail.com> wrote:
> 
>> 
>> On Mar 3, 2016, at 11:26 AM, Thomas De Schampheleire <patrickdepinguin@gmail.com> wrote:
>> 
>> On Mon, Feb 8, 2016 at 10:40 AM, Thomas De Schampheleire
>> <patrickdepinguin@gmail.com> 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

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]