Fedora Cygwin RPM repository

Reini Urban rurban@x-ray.at
Tue Mar 15 15:33:00 GMT 2011


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 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} =~ /^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
http://phpwiki.org/           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



More information about the Cygwin mailing list