bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: objcopy.c: question regarding debugging info handling


From: Alan Modra
Subject: Re: objcopy.c: question regarding debugging info handling
Date: Wed, 5 Mar 2003 12:59:43 +1030
User-agent: Mutt/1.4i

On Mon, Mar 03, 2003 at 12:49:53PM +0100, Joerg Wunsch wrote:
> I'm wondering
> about the following piece in objcopy.c::filter_symbols():
> 
>       else if ((flags & BSF_DEBUGGING) != 0)  /* Debugging symbol.  */
>       keep = (strip_symbols != STRIP_DEBUG
>               && strip_symbols != STRIP_UNNEEDED
>               && ! convert_debugging);
> 
> This will make a symbol from the symtab go away that is marked as
> BSF_DEBUGGING even though convert_debugging is true.  Shouldn't that
> be
> 
>       keep = (strip_symbols != STRIP_DEBUG
>               && strip_symbols != STRIP_UNNEEDED)
>              || convert_debugging;
> 
> instead, i. e. when convert_debugging is true, BSF_DEBUGGING symbols
> should always be kept?

I think the idea was that write_debugging_info should add used debug
symbols back.  Obviously, it doesn't do so yet.

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre




reply via email to

[Prev in Thread] Current Thread [Next in Thread]