From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19287 invoked by alias); 19 Nov 2013 21:05:01 -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 19272 invoked by uid 89); 19 Nov 2013 21:05:00 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.7 required=5.0 tests=AWL,BAYES_00,RDNS_NONE,SPF_HELO_PASS,SPF_PASS autolearn=no version=3.3.2 X-HELO: mx1.redhat.com Received: from Unknown (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 19 Nov 2013 21:03:18 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id rAJL31Eb030968 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 19 Nov 2013 16:03:02 -0500 Received: from barimba (ovpn-113-124.phx2.redhat.com [10.3.113.124]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id rAJL30mU018618 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Tue, 19 Nov 2013 16:03:01 -0500 From: Tom Tromey To: "Pierre Muller" Cc: "'Iain Buclaw'" , Subject: Re: [PATCH] Add d_main_name to dlang.c References: <87mwl0mlsa.fsf@fleche.redhat.com> <874n78mge2.fsf@fleche.redhat.com> <39451.43601527$1384894769@news.gmane.org> Date: Tue, 19 Nov 2013 21:08:00 -0000 In-Reply-To: <39451.43601527$1384894769@news.gmane.org> (Pierre Muller's message of "Tue, 19 Nov 2013 18:58:54 -0200") Message-ID: <87bo1gksu3.fsf@fleche.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SW-Source: 2013-11/txt/msg00563.txt.bz2 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