From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15114 invoked by alias); 18 Jan 2014 18:22:35 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 15104 invoked by uid 89); 18 Jan 2014 18:22:34 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.7 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-qa0-f43.google.com Received: from mail-qa0-f43.google.com (HELO mail-qa0-f43.google.com) (209.85.216.43) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Sat, 18 Jan 2014 18:22:33 +0000 Received: by mail-qa0-f43.google.com with SMTP id o15so4367701qap.2 for ; Sat, 18 Jan 2014 10:22:31 -0800 (PST) MIME-Version: 1.0 X-Received: by 10.140.95.151 with SMTP id i23mr3248098qge.20.1390069351432; Sat, 18 Jan 2014 10:22:31 -0800 (PST) Received: by 10.229.195.196 with HTTP; Sat, 18 Jan 2014 10:22:31 -0800 (PST) In-Reply-To: References: <87wqi981ef.fsf@fleche.redhat.com> Date: Sat, 18 Jan 2014 18:22:00 -0000 Message-ID: Subject: Re: [PATCH 3/5] Add d_main_name to dlang.c From: Iain Buclaw To: Tom Tromey Cc: gdb-patches@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes X-SW-Source: 2014-01/txt/msg00696.txt.bz2 On 18 January 2014 17:09, Iain Buclaw wrote: > On 9 January 2014 18:18, Tom Tromey wrote: >>>>>>> "Iain" == Iain Buclaw 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 >> >> 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