On 06/27/2011 10:39 AM, Tobias Burnus wrote:
Dear all,
during the GCC Gathering I realized during the LTO debugging symbol discussion
that gfortran does
not generate debug information for the OOP features (cf. PR 49475).
The first issue to solve is which DWARF information one should generate. I have
only very limited
knowledge of DWARF, except that I quickly scanned "5.5.3 Derived or Extended
Structs, Classes and
Interfaces" and "5.5.7 Member Function Entries" (of
http://www.dwarfstd.org/doc/DWARF4.pdf).
I think one should handle member functions (cf. example below). I am not sure
whether other things
like type extension or accessibility should be handled.
DWARF has attributes for accessibility (e.g., public, private). If the
attributes are similar to those for C++, you should generate them in a
similar fashion. I'm not sure what "type extension" means. If there is
a comparable feature in C++ or other languages supported by DWARF, you
should generate similar DWARF info. If these are different from any of
the supported languages, create a user attribute. (And submit a proposal
at http://www.dwarfstd.org.)
You might translate the Fortran program into comparable C++ and
see what g++ generates, then try to match it with gfortran.
--
Michael Eager ea...@eagercon.com
1960 Park Blvd., Palo Alto, CA 94306 650-325-8077