[PATCH] Add d_main_name to dlang.c

Iain Buclaw ibuclaw@gdcproject.org
Tue Nov 19 17:50:00 GMT 2013


On 19 November 2013 15:52, Tom Tromey <tromey@redhat.com> wrote:
>>>>>> "Iain" == Iain Buclaw <ibuclaw@gdcproject.org> writes:
>
> Iain> +2013-11-18  Iain Buclaw  <ibuclaw@gdcproject.org>
> Iain> +
> Iain> + * d-lang.h (d_main_name): Add declaration.
> Iain> + * d-lang.c (d_main_name): New function.
> Iain> + * symtab.c (find_main_name): Add call to d_main_name.
>
> Looks good to me.
>
> Do you have a copyright assignment on file?
> If not, contact me off-list and I'll get you started.
>
> Tom

By the way, it is more preferable to use the mangled name of the D
main function (_Dmain), or the pretty debug de-mangled name?  Both
work just as well in achieving the job.


Regards
Iain



More information about the Gdb-patches mailing list