This is the mail archive of the cygwin mailing list for the Cygwin 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: Fedora Cygwin RPM repository

2011/3/14 Corinna Vinschen:
> On Mar 14 14:08, René Berber wrote:
>> On 3/14/2011 3:59 AM, Corinna Vinschen wrote:
>> [snip]
>> > I also found another strange problem. ?It's practically impossible to
>> > debug a Cygwin DLL built with this gcc/g++. ?The 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 .
> 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} =~ /^4\.[56]\./) {
    my $gdb_ver = `gdb --version`;
    if ($gdb_ver =~ /gdb 6\./) {
        print "Adding extra_cflags=-gstrict-dwarf for gcc-4.5 for a
gdb-6 debugger which does not understand dwarf4 features\n";
        $extra_cflags .= " -gstrict-dwarf";
Reini Urban ? ? ? ??

Problem reports:
Unsubscribe info:

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