From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4063 invoked by alias); 7 Jan 2014 09:53:11 -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 3995 invoked by uid 89); 7 Jan 2014 09:53:10 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.1 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-f50.google.com Received: from mail-qa0-f50.google.com (HELO mail-qa0-f50.google.com) (209.85.216.50) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Tue, 07 Jan 2014 09:53:09 +0000 Received: by mail-qa0-f50.google.com with SMTP id k4so352914qaq.23 for ; Tue, 07 Jan 2014 01:53:06 -0800 (PST) MIME-Version: 1.0 X-Received: by 10.224.53.71 with SMTP id l7mr151238262qag.33.1389088386424; Tue, 07 Jan 2014 01:53:06 -0800 (PST) Received: by 10.229.195.196 with HTTP; Tue, 7 Jan 2014 01:53:06 -0800 (PST) In-Reply-To: References: <87mwl0mlsa.fsf@fleche.redhat.com> <874n78mge2.fsf@fleche.redhat.com> <39451.43601527$1384894769@news.gmane.org> <87bo1gksu3.fsf@fleche.redhat.com> Date: Tue, 07 Jan 2014 09:53:00 -0000 Message-ID: Subject: Re: [PATCH] Add d_main_name to dlang.c From: Iain Buclaw To: Tom Tromey Cc: Pierre Muller , gdb-patches@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes X-SW-Source: 2014-01/txt/msg00131.txt.bz2 On 3 January 2014 18:18, Iain Buclaw wrote: > On 19 November 2013 21:03, Tom Tromey wrote: >> Pierre> I thought that in general, using the mangled name >> Pierre> would allow to find main even if you do not generate >> Pierre> any debug information, as long as you do not remove the >> Pierre> assembler symbols from the executable. >> Pierre> This seems like a valid reason to prefer mangled name >> Pierre> over demangled, no? >> >> The demangled name ends up in the minimal symbol table as well. >> It's convoluted but it ends up in symbol_find_demangled_name, which has >> a case for language_d. >> >> Tom > > Hi Tom, > > (I've just realised that I my last reply was not cc'd into gdb-patches) > > The assignments should now be processed. > > Since November, I've made a few more changes that are reflected in > this new patch. > > I would add some more tests for D, but I feel that should write a > complete parser for D expressions first (d-exp.y) - this will be done > at a later date. > By the way, would it be best to split this up into smaller changes? Regards Iain.