X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-1.9 required=5.0	tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,TW_GD,T_TO_NO_BRKTS_FREEMAIL
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <20110314203051.GH7031@calimero.vinschen.de>
References: <1299994671.5080.21.camel@YAAKOV04>	<20110313113654.GA22542@calimero.vinschen.de>	<1300076662.3440.15.camel@YAAKOV04>	<20110314095945.GA356@calimero.vinschen.de>	<illski$4oo$1@dough.gmane.org>	<20110314203051.GH7031@calimero.vinschen.de>
Date: Tue, 15 Mar 2011 16:03:40 +0100
Message-ID: <AANLkTikZrtHtaQ8zOsS_Wg6EtMMA7L8BkLp8UgFWbLKY@mail.gmail.com>
Subject: Re: Fedora Cygwin RPM repository
From: Reini Urban <rurban@x-ray.at>
To: cygwin@cygwin.com
Cc: Corinna Vinschen <corinna-cygwin@cygwin.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

2011/3/14 Corinna Vinschen:
> On Mar 14 14:08, Ren=E9 Berber wrote:
>> On 3/14/2011 3:59 AM, Corinna Vinschen wrote:
>>
>> [snip]
>> > I also found another strange problem. =A0It's practically impossible to
>> > debug a Cygwin DLL built with this gcc/g++. =A0The debug line number
>> > information appears to be screwed up.
>>
>> You need gdb 7.0 or above (current is 7.2 and builds out of the box).
>> The info about this is in http://gcc.gnu.org/gcc-4.5/changes.html .
>
> Thanks for the info!

Or build with the old dwarf format, which gdb-6.8 understands:
-gdwarf-3 -gstrict-dwarf

gcc-4.5 uses dwarf4 features, gcc-4.3 and gdb-6.8 only understand dwarf3.

Within my perl config:
# cygwin still has the old gdb-6 debugger which does not understand
dwarf4 features from gcc-4.5
if ($Config{gccversion} =3D~ /^4\.[56]\./) {
    my $gdb_ver =3D `gdb --version`;
    if ($gdb_ver =3D~ /gdb 6\./) {
        print "Adding extra_cflags=3D-gstrict-dwarf for gcc-4.5 for a
gdb-6 debugger which does not understand dwarf4 features\n";
        $extra_cflags .=3D " -gstrict-dwarf";
    }
}
--=20
Reini Urban
http://phpwiki.org/=A0 =A0 =A0 =A0 =A0=A0 http://murbreak.at/

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

