This is the mail archive of the gdb@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: Problems while debugging fortran


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Daniel Jacobowitz wrote:
>
> Here's a relevant patch from the Debian packages of GDB.  As you can
> see it comes from a mailing list message - I don't remember exactly
> who submitted it without looking it up and I don't remember exactly
> why it was never committed, but it was probably Wu Zhou and it was
> probably never merged because of the larger issue of symbol case
> sensitivity.
This patch works fine _if_ the compiler is gfortran/g77. However, not
all compilers call the program by "MAIN__". So, I was thinking about
having something in symtab.c:find_main_name that checks DW_CC_program
value if the language is Fortran and get the name from the main
routine from DW_AT_name. Is that an acceptable solution?

Regards,

- --
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

iD8DBQFG+tE1qvq7Aov/qQARAprFAJ0aijQ2D6Mhuc4e4mGr/y1VAskdfgCfQeXT
/47+1mSHn6XRATG0ihLyUo0=
=DbGQ
-----END PGP SIGNATURE-----


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