This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 3/5] Add d_main_name to dlang.c
- From: Iain Buclaw <ibuclaw at gdcproject dot org>
- To: Tom Tromey <tromey at redhat dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Sat, 18 Jan 2014 18:22:31 +0000
- Subject: Re: [PATCH 3/5] Add d_main_name to dlang.c
- Authentication-results: sourceware.org; auth=none
- References: <CABOHX+cKZ6+1H3DyHw6ZsOZHAu7_pvaE2KyGPqh9DKvC2n3tCg at mail dot gmail dot com> <87wqi981ef dot fsf at fleche dot redhat dot com> <CABOHX+e31XHSJGu-MLggDL71YtymiG7p4qsfaLjk6y7wKcpvww at mail dot gmail dot com>
On 18 January 2014 17:09, Iain Buclaw <ibuclaw@gdcproject.org> wrote:
> On 9 January 2014 18:18, Tom Tromey <tromey@redhat.com> wrote:
>>>>>>> "Iain" == Iain Buclaw <ibuclaw@gdcproject.org> writes:
>>
>> Iain> The main program in D is _Dmain (demangled as 'D main') not C 'main'.
>> Iain> So the logical entry point of the program should be set accordingly.
>>
>> Iain> 2014-01-09 Iain Buclaw <ibuclaw@gdcproject.org>
>>
>> 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.
>>
>> This is ok.
>>
>
>
> FYI, this has been amended slightly for the recent change to set_main_name.
And committed.
Regards
Iain