From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29733 invoked by alias); 10 Oct 2013 04:58:24 -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 29723 invoked by uid 89); 10 Oct 2013 04:58:24 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2 X-HELO: rock.gnat.com Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Thu, 10 Oct 2013 04:58:23 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 860AC11678D; Thu, 10 Oct 2013 00:58:42 -0400 (EDT) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 8k3jkniklpl9; Thu, 10 Oct 2013 00:58:42 -0400 (EDT) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id 1A804116789; Thu, 10 Oct 2013 00:58:42 -0400 (EDT) Received: by joel.gnat.com (Postfix, from userid 1000) id 87E0EE0149; Thu, 10 Oct 2013 08:58:19 +0400 (RET) Date: Thu, 10 Oct 2013 04:58:00 -0000 From: Joel Brobecker To: Doug Evans Cc: Jan Kratochvil , gdb-patches Subject: Re: [patchv2] Record objfile->original_name as an absolute path Message-ID: <20131010045819.GL3092@adacore.com> References: <20130926084713.GA11031@host2.jankratochvil.net> <20131009144629.GC27355@host2.jankratochvil.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-SW-Source: 2013-10/txt/msg00333.txt.bz2 > > +/* Cheezy hack to prevent set_initial_language from trying to look up main. > > + We do this so that gdb won't try to open the dwp file when the file is > > + first selected. This gives us a chance to do a chdir before attempting > > + to access the debug info. */ > > +asm (".globl main.main"); > > +asm ("main.main: .byte 0"); > > + > > int > > main (int argc, char **argv) > > { > > People are actually ok with this? FWIW, I tend to be a little less demanding in the testsuite. But the first question is whether there is another alternative. Is there? -- Joel