From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15483 invoked by alias); 8 Apr 2013 17:02:29 -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 15474 invoked by uid 89); 8 Apr 2013 17:02:28 -0000 X-Spam-SWARE-Status: No, score=-7.5 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,RCVD_IN_DNSWL_HI,RCVD_IN_HOSTKARMA_W,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=ham version=3.3.1 Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Mon, 08 Apr 2013 17:02:28 +0000 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r38H2OcW029464 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 8 Apr 2013 13:02:24 -0400 Received: from host2.jankratochvil.net (ovpn-116-44.ams2.redhat.com [10.36.116.44]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id r38H2KNf012651 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Mon, 8 Apr 2013 13:02:22 -0400 Date: Tue, 09 Apr 2013 01:15:00 -0000 From: Jan Kratochvil To: Pedro Alves Cc: Aleksandar Ristovski , gdb-patches@sourceware.org Subject: Re: [patch] validate binary before use Message-ID: <20130408170219.GA27021@host2.jankratochvil.net> References: <20130328183727.GA14798@host2.jankratochvil.net> <515B0632.1040502@qnx.com> <20130402165306.GA9479@host2.jankratochvil.net> <515B12D1.7050505@qnx.com> <20130403180917.GA6102@host2.jankratochvil.net> <515CDF7F.5020403@qnx.com> <20130404081302.GA4099@host2.jankratochvil.net> <515D7A09.5010305@qnx.com> <20130405114732.GA11684@host2.jankratochvil.net> <5162DABE.1040309@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5162DABE.1040309@redhat.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-IsSubscribed: yes X-SW-Source: 2013-04/txt/msg00197.txt.bz2 On Mon, 08 Apr 2013 16:57:02 +0200, Pedro Alves wrote: > On 04/05/2013 12:47 PM, Jan Kratochvil wrote: > > Sure one could make a Linux-specific local solib-*.c backend but the current > > plan is to drop all (in reality just some) *-nat.c files in the favor of > > always using gdbserver. > > Not for core files. We'll still fallback to solib-svr4.c for those. > Are core files being considered in all this? I admit I did not think much about core files but: Core files will work with the current solib-svr4.c code. Linux core files have now NT_FILE extension with /proc/PID/maps content which is also recognized by Tom's patch in FSF GDB HEAD so it could fully work with core files. Just one has to compare filenames instead of inode there, inode is not present in NT_FILE. Jan