From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24062 invoked by alias); 9 Oct 2013 16:37:17 -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 24053 invoked by uid 89); 9 Oct 2013 16:37:17 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.3 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-vb0-f54.google.com Received: from mail-vb0-f54.google.com (HELO mail-vb0-f54.google.com) (209.85.212.54) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Wed, 09 Oct 2013 16:37:16 +0000 Received: by mail-vb0-f54.google.com with SMTP id q14so718944vbe.27 for ; Wed, 09 Oct 2013 09:37:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=vPkGzwOf3BIYc1s8SvUfit3BMQrIjBlV9mKJ4NvupLs=; b=NEhGRmlbro/h/tR4ansrghyeO6xK4YRLOiBbbmxXuBJOlmHehcQ8ASRg4TyJ1Zfmep h+SJTINKohH4jr+OMYc9N2EOHt2WZchKFuq27eJNglUt51chEPwyEo9MPgPmY57i5iXa DddrmDchQz1sAFZBVdLNMPLUYJYOZPI8cOr7qrimTLNrs4jOXN28Y6bUfAR2ps4Jm4S4 2cj2QizF7SM85IdesB3+vbCWgTgvgq4v5ZF5/bT5gDgKNA3t6pioyh+at5Ilavbe0sBO J/8Dlxo6wKdZhwDlxfW3yGGtRIHn5lXsJd+HlN7D4USxcK5gCKzklob2PDEDE1DuKEpT DktA== X-Gm-Message-State: ALoCoQkHVsYZlsFpRyLc4BfOLysYBSvtReLHFDeNS0LKOxoVZHGv/0xjBgQGDPfUynUjXx1P7hMEYi4wZ/Bw3M84P59vGidNUdJbakgA+HgtnC2IW2mYVUFh+aPLZJX+62szDV/T1cfuxjFlI1jkdutRuuesjLmlgAof5N/5ov2gLEsMX5KjbLRrgd8TSNdQt0KdM6Yib+hPEdKTK8JuaGQS80qw0Ir6Zg== MIME-Version: 1.0 X-Received: by 10.52.169.227 with SMTP id ah3mr766244vdc.45.1381336634400; Wed, 09 Oct 2013 09:37:14 -0700 (PDT) Received: by 10.52.37.138 with HTTP; Wed, 9 Oct 2013 09:37:14 -0700 (PDT) In-Reply-To: <20131009144629.GC27355@host2.jankratochvil.net> References: <20130926084713.GA11031@host2.jankratochvil.net> <20131009144629.GC27355@host2.jankratochvil.net> Date: Wed, 09 Oct 2013 16:37:00 -0000 Message-ID: Subject: Re: [patchv2] Record objfile->original_name as an absolute path From: Doug Evans To: Jan Kratochvil Cc: gdb-patches Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes X-SW-Source: 2013-10/txt/msg00287.txt.bz2 On Wed, Oct 9, 2013 at 7:46 AM, Jan Kratochvil wrote: > diff --git a/gdb/testsuite/gdb.dwarf2/dwp-symlink.c b/gdb/testsuite/gdb.dwarf2/dwp-symlink.c > index 5be12fb..a93d5e7 100644 > --- a/gdb/testsuite/gdb.dwarf2/dwp-symlink.c > +++ b/gdb/testsuite/gdb.dwarf2/dwp-symlink.c > @@ -15,6 +15,13 @@ > You should have received a copy of the GNU General Public License > along with this program. If not, see . */ > > +/* 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?