gdb bug in Fortran langauge mode

Jeffrey A Law law@cygnus.com
Wed Jun 16 16:37:00 GMT 1999


  In message < Pine.SGI.3.96.990616152202.1469A-100000@maxwell.la.asu.edu >you wr
ite:
  > If the gdb people implement what you are asking for, and reverse the
  > ordering of array elements, then printing array elements will break on
  > AIX/RS6k.  From what I recall, Sun invented the stabs format, not IBM, so
  > you can probably expect gdb to break on Sun's f77 as well.  The gdb people
  > are welcome to the patch I posted to gdb-patches months ago that does
  > exactly this.
  > 
  > Is there anyone out there on a Sun or different machine who can tell us
  > if gdb correctly prints elements of multidimensional fortran arrays?
If other hosts do it one way, that does not necessarily make it correct.  How
other host/target combos handle this is but one factor in the decision about
what is right and what is wrong.

It is unfortunate that stabs do not explicitly state how Fortran should be
handled (though it's worth noting dwarf2 has bits to indicate how this stuff
works).    Then again, nobody has made a serious effort to definitively define
the stabs format.

And, err, Sun did not invest stabs.  stabs pre-date Sun's entry into the
workstation market.



jeff



More information about the Gcc mailing list