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


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: syms_from_objfile() warnings and win32-nat.c IO redirection (Was: suppress annoying warnings about cygwin1.dbg)


Daniel Jacobowitz wrote:

> The patch I was talking about has since been committed.  I don't
> remember if that was supposed to fix Insight or supposed to allow
> some nicer patch to do it... could you let me know if there's still a
> problem in GDB 6.7 / HEAD?

Unfortunately, current HEAD is nearly unusable right now on Cygwin. 
This is a simple hello world program:

$ /build/combined/gdb/gdb hello
GNU gdb 6.7.50-20071012-cvs
Copyright (C) 2007 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show
copying"
and "show warranty" for details.
This GDB was configured as "i686-pc-cygwin"...
Reading symbols from /home/brian/hello.exe...done.
(gdb) start
Reading in symbols for hello.c...done.
Reading in symbols for hello.c...done.
Breakpoint 1 at 0x401065: file hello.c, line 4.
Reading symbols from /winxp/system32/ntdll.dll...done.
Reading symbols from /winxp/system32/kernel32.dll...done.
Reading symbols from /usr/bin/cygwin1.dll...Reading symbols from
/usr/bin/cygwin1.dbg...warning: no loadable sections found in added
symbol-file /usr/bin/cygwin1.dbg
warning: section .text not found in /usr/bin/cygwin1.dbg
warning: section .autoload_text not found in /usr/bin/cygwin1.dbg
warning: section .data not found in /usr/bin/cygwin1.dbg
warning: section .rdata not found in /usr/bin/cygwin1.dbg
warning: section .bss not found in /usr/bin/cygwin1.dbg
warning: section .edata not found in /usr/bin/cygwin1.dbg
warning: section .rsrc not found in /usr/bin/cygwin1.dbg
warning: section .reloc not found in /usr/bin/cygwin1.dbg
warning: section .cygwin_dll_common not found in /usr/bin/cygwin1.dbg
warning: section .idata not found in /usr/bin/cygwin1.dbg
warning: section .cygheap not found in /usr/bin/cygwin1.dbg
done.
done.
Reading symbols from /winxp/system32/advapi32.dll...done.
Reading symbols from /winxp/system32/rpcrt4.dll...done.
Reading symbols from /winxp/system32/secur32.dll...done.
Reading symbols from /winxp/system32/shimeng.dll...done.
[New thread 3872.0x95c]
Reading symbols from /winxp/system32/user32.dll...done.
Reading symbols from /winxp/system32/gdi32.dll...done.
main (argc=1, argv=0x6629f0) at hello.c:4
4       {

For comparison, with 6.5.50.20060706-cvs:

(gdb) start
Reading in symbols for hello.c...done.
Breakpoint 1 at 0x401065: file hello.c, line 4.
[New thread 4052.0xdb4]
main (argc=1, 
    argv=0x662cd0) at hello.c:4
4       {


If you do this in insight it's much worse as every one of those warnings
gets its own popup message box, which means twelve annoying things to
dismiss before you can even start to debug.  And on top of that, some of
these messages somehow end up spuriously appearing in with the program
display pane in insight (see attached PNG).  I guess there's some kind
of filter in the insight code that needs updating, but preferrably these
warnings shouldn't even be generated.

Brian

PNG image


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