This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC] Use DW_CC_program to indicate Fortran main subroutine
On Mon, Nov 21, 2005 at 11:34:15AM -0500, Jason Merrill wrote:
> 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.
Right - and it might not be, e.g. DW_CC_GNU_renesas_sh. I think Dan's
got the right idea; we should just make up a tag for this, and submit
it for dwarf4.
--
Daniel Jacobowitz
CodeSourcery, LLC