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] |
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Joel Brobecker wrote: > [moving to gdb-patches] > > This is close to what I had in mind, but I would personally prefer > to limit this to Fortran compilation units. The semantics of this > attribute value are still a bit unclear, and I'd like us to be cautious > in its usage. > Restricted this to Fortran. Ok to commit now? - -- Carlos Eduardo Seo Software Engineer IBM Linux Technology Center -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.7 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHIJixqvq7Aov/qQARAh48AJ48hFyPjN24ewQTVU2QIxOrf4PHwACcD9wk 0G1NiOtDHkaBSQyBhyTnbIg= =Bh+k -----END PGP SIGNATURE-----
2007-10-25 Wu Zhou <woodzltc@cn.ibm.com> Carlos Eduardo Seo <cseo@linux.vnet.ibm.com> * dwarf2read.c (read_partial_die): check the value of DW_AT_calling_convention in Fortran programs. Index: src/gdb/dwarf2read.c =================================================================== --- src.orig/gdb/dwarf2read.c +++ src/gdb/dwarf2read.c @@ -5616,6 +5616,13 @@ read_partial_die (struct partial_die_inf case DW_AT_byte_size: part_die->has_byte_size = 1; break; + case DW_AT_calling_convention: + /* DWARF standard suggests to use value DW_CC_program of attribute + DW_AT_calling_convention to indicate the Fortran main program. + The following code is to check this. */ + if ((DW_UNSND (&attr) == DW_CC_program) && (cu->language == language_fortran)) + set_main_name (part_die->name); + break; default: break; }
Attachment:
fortran-main.diff.sig
Description: Binary data
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |