This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: syms_from_objfile() warnings and win32-nat.c IO redirection (Was: suppress annoying warnings about cygwin1.dbg)
On Mon, Oct 29, 2007 at 08:33:18AM -0400, Daniel Jacobowitz wrote:
>On Mon, Oct 29, 2007 at 09:03:08AM +0000, Pedro Alves wrote:
>> Can anyone point me into why the non-debug sections are
>> preserved (as NOBITS) in the seperate debug file?
>> Could it be so support the case where the section headers
>> were stripped in the main file?
>> To help if there are relocs against section symbols in
>> the debug info? Not sure if that makes sense in
>> a NOBITS section.
>> Or, are they added so to keep tools that currently expect
>> them there happy?
>
>I don't think you can do without them, because you have a symbol table
>in the separate file; the symbol table needs to say which section each
>symbol is defined in. But I'm just extrapolating this from what I
>know about ELF. What I know about PE/COFF wouldn't fill a teacup.
It should be equivalent in PE/COFF, IIRC.
cgf