This is the mail archive of the
insight@sourceware.org
mailing list for the Insight project.
Re: [patch] suppress annoying warnings about cygwin1.dbg
Christopher Faylor wrote:
> I wonder if there is just something being missed here. The cygwin1.dbg
> stuff was adapted from linux. It is the mechanism used by Red Hat to
> create debuginfo rpms. If this isn't working in insight is there
> something not quite right in gdb itself? Or is the cygwin .dbg procedure
> not putting some crucial information into the .dbg file? I did have to
> make some concessions to PE when I created that file since the standard
> linux method didn't work quite right.
What does objdump -h say for one of those Red Hat debug files? Is there
a .text section and/or a section marked loadable? I mean, I suppose we
could stick a dummy .text section in the .dbg file if it will shut up
gdb, but that sounds just as hacky as teaching gdb to properly suppress
its warnings. I went over symfile.c:syms_from_objfile() again and all I
can really conclude is that if gdb doesn't warn when loading a Red Hat
debug file (which obviously it doesn't), then one of the following must
be true:
- it's being loaded with some other completely different mechanism
elsewhere (doesn't seem likely as the .gnu_debuglink code is right
there)
- the linux debug file has a .text section
- the linux port successfully supresses the warnings from being
displayed in all cases
Brian