syms_from_objfile() warnings and win32-nat.c IO redirection (Was: suppress annoying warnings about cygwin1.dbg)

Daniel Jacobowitz drow@false.org
Mon Oct 29 12:57:00 GMT 2007


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.

If the symbol table doesn't exist in the original file, and you
don't load the debug file with the right offsets, the symbols aren't
going to be found at the correct addresses.

I haven't looked at your previous message yet - I'll try to today.

-- 
Daniel Jacobowitz
CodeSourcery



More information about the Gdb-patches mailing list