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] Use DW_CC_program to indicate Fortran main subroutine


Daniel Jacobowitz wrote:
As for calling set_main_name, I don't know if this is right or not.  I
guess it depends what the DWARF folks meant by "not intended as a way
of finding the entry address for the program".  Can a Fortran binary
have more than one "main program"?

If they only meant "it does not indicate the address you can jump to in
order to start", then this seems quite reasonable.

This makes sense to me. The "entry address" sounds like _start, not main.


It does seem a bit odd to put this under the calling convention attribute, though, as the main function might be callable using the normal calling convention in some languages. Java, for instance.

Jason


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