public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug debug/19197] New: Cygwin's gdb turns up its nose at DWARF debug info...
@ 2004-12-30  2:41 bsdfan3 at users dot sourceforge dot net
  2004-12-30  5:10 ` [Bug debug/19197] " pinskia at gcc dot gnu dot org
  0 siblings, 1 reply; 2+ messages in thread
From: bsdfan3 at users dot sourceforge dot net @ 2004-12-30  2:41 UTC (permalink / raw)
  To: gcc-bugs

--enable-dwarf2 seems to work just fine on Cygwin32, except for the fact that
GDB turns up its nose at the presence of DWARF debug info in files that aren't
ELF (such as WindowsNT PE files).  This problem reared its UGLY head when I was
trying to debug the built-but-not-installed GCC 4 I keep on hand.  Error
messages are as follows:

Lucas@your-xu5v9frokn ~/b-gcc
$ gdb gcc/xgcc
GNU gdb 2003-09-20-cvs (cygwin-special)
Copyright 2003 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i686-pc-cygwin"...
/netrel/src/gdb-20030919-1/gdb/dwarf2read.c:1197: internal-error: read_comp_unit
_head: dwarf from non elf file
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Quit this debugging session? (y or n) n

/netrel/src/gdb-20030919-1/gdb/dwarf2read.c:1197: internal-error: read_comp_unit
_head: dwarf from non elf file
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Create a core file of GDB? (y or n) n

-- 
           Summary: Cygwin's gdb turns up its nose at DWARF debug info...
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: debug
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: bsdfan3 at users dot sourceforge dot net
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-cygwin
  GCC host triplet: i686-pc-cygwin
GCC target triplet: i686-pc-cygwin


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19197


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug debug/19197] Cygwin's gdb turns up its nose at DWARF debug info...
  2004-12-30  2:41 [Bug debug/19197] New: Cygwin's gdb turns up its nose at DWARF debug info bsdfan3 at users dot sourceforge dot net
@ 2004-12-30  5:10 ` pinskia at gcc dot gnu dot org
  0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-12-30  5:10 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-12-30 05:10 -------
Why this is filed here.  This is not a gcc bug but a gdb one, report it to them.

Also the gdb which you are using is old, newer ones I think support dwarf-2 for windows.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19197


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-12-30  5:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-30  2:41 [Bug debug/19197] New: Cygwin's gdb turns up its nose at DWARF debug info bsdfan3 at users dot sourceforge dot net
2004-12-30  5:10 ` [Bug debug/19197] " pinskia at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).