Re: [patch] support -gdwarf-2 when creating cygwin1.dbg

2007-04-18 Thread Charles Wilson
Chiming in with a general comment: dwarf2 exceptions are different than dwarf2 debug info. However, obviously both varieties of "dwarf2" can impact gdb. I finished a build last weekend of gcc trunk with (1) Steve Ellcey's recently-accepted "pre switch to modern libtool" patch (2) Steve El

Re: [patch] support -gdwarf-2 when creating cygwin1.dbg

2007-04-18 Thread Brian Dessent
Corinna Vinschen wrote: > I debugged Cygwin native GDB a couple of days ago with code created by > gcc 4.2. It turned out that the DWARF2_UNWIND_INFO define set to 0 > resulted in the DW_CFA_offset column missing. The result is that GDB is > unable to get the return address on the stack when usi

Re: [patch] support -gdwarf-2 when creating cygwin1.dbg

2007-04-18 Thread Corinna Vinschen
On Apr 18 09:23, Christopher Faylor wrote: > On Wed, Apr 18, 2007 at 06:17:59AM -0700, Brian Dessent wrote: > >Christopher Faylor wrote: > > > >> Thanks for doing this. Please check in. Can we switch to dwarf-2 by > >> default in the cygwin makefile(s)? > > > >I thought about that, but the proble

Re: [patch] support -gdwarf-2 when creating cygwin1.dbg

2007-04-18 Thread Brian Dessent
Christopher Faylor wrote: > So, maybe a top-level configure option would be useful? At the very least > we can get rid of the -gstabs specific use in configure. Oh, I didn't know there was anything that specifically mentions -gstabs in there, just that if you don't set {C,CXX}FLAGS yourself auto

Re: [patch] support -gdwarf-2 when creating cygwin1.dbg

2007-04-18 Thread Christopher Faylor
On Wed, Apr 18, 2007 at 06:17:59AM -0700, Brian Dessent wrote: >Christopher Faylor wrote: > >> Thanks for doing this. Please check in. Can we switch to dwarf-2 by >> default in the cygwin makefile(s)? > >I thought about that, but the problem is anything you do to *FLAGS in >winsup/cygwin won't af

Re: [patch] support -gdwarf-2 when creating cygwin1.dbg

2007-04-18 Thread Brian Dessent
Christopher Faylor wrote: > Thanks for doing this. Please check in. Can we switch to dwarf-2 by > default in the cygwin makefile(s)? I thought about that, but the problem is anything you do to *FLAGS in winsup/cygwin won't affect flags used in the other dirs like libiberty or newlib, and so unl

Re: [patch] support -gdwarf-2 when creating cygwin1.dbg

2007-04-18 Thread Corinna Vinschen
On Apr 18 08:58, Christopher Faylor wrote: > On Wed, Apr 18, 2007 at 05:44:25AM -0700, Brian Dessent wrote: > >The attached patch allows for dllfixdbg to copy DWARF-2 debug sections > >into the .dbg file. There was also an (accidently?) duplicated section > >in the cygwin.sc linker script that I r

Re: [patch] support -gdwarf-2 when creating cygwin1.dbg

2007-04-18 Thread Christopher Faylor
On Wed, Apr 18, 2007 at 05:44:25AM -0700, Brian Dessent wrote: > >The attached patch allows for dllfixdbg to copy DWARF-2 debug sections >into the .dbg file. There was also an (accidently?) duplicated section >in the cygwin.sc linker script that I removed while I was there. > >The advantages of be

[patch] support -gdwarf-2 when creating cygwin1.dbg

2007-04-18 Thread Brian Dessent
The attached patch allows for dllfixdbg to copy DWARF-2 debug sections into the .dbg file. There was also an (accidently?) duplicated section in the cygwin.sc linker script that I removed while I was there. The advantages of being able to build newlib/winsup with -gdwarf-2 in C/CXXFLAGS are a ~3