This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB 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: [RFC]: Testcase for gdb's handling of Fortran's column-firstarray


> OK.  With all these said, here is the patch.  I had tested it on FC4, it 
> reported no failure.  But however I _did_ found a old gdb (6.1 maybe) 
> handle this incorrectly.  So this testcase still make senses.  OK to 
> commit?


Hi Wu

That's what I'd expect, as my patch to fix things went in to GDB 6.2.1
(iirc).  

One thing to note is that g77 puts things the wrong way round in the
symbol table (but not in the real data).  In the dwarf2 reader we have
an explicit fix for this incorrect GNU behaviour, but you will not find
the same fix in stabs or dwarf1 -- so on legacy platforms (AIX, Solaris)
with g77 you should expect failure with GNU, pass with IBM's XLF and
Sun's Forte.  

It's also going to fail on Linux with -gstabs as a parameter for g77.  

I've not checked gfortran behaviour -- if it works, it's either because
gfortran haven't fixed the original issue, or they changed the
expression that we check the 'producer' against before making the swap
round (you'll find that in dwarf2readc).

Cheers
d.
-- 
David Lecomber <david@lecomber.net>


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