From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28502 invoked by alias); 21 Mar 2014 16:58:35 -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 28452 invoked by uid 89); 21 Mar 2014 16:58:35 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-4.1 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 21 Mar 2014 16:58:34 +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 s2LGwUb7014372 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 21 Mar 2014 12:58:31 -0400 Received: from host2.jankratochvil.net (ovpn-116-22.ams2.redhat.com [10.36.116.22]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s2LGwQGt015517 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Fri, 21 Mar 2014 12:58:28 -0400 Date: Fri, 21 Mar 2014 16:58:00 -0000 From: Jan Kratochvil To: Aleksandar Ristovski Cc: gdb-patches@sourceware.org Subject: Re: [PATCH v5 7/8] Validate symbol file using build-id Message-ID: <20140321165825.GD14155@host2.jankratochvil.net> References: <20140319223004.14668.20989.stgit@host1.jankratochvil.net> <20140319223123.14668.95821.stgit@host1.jankratochvil.net> <532AE962.9030604@qnx.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <532AE962.9030604@qnx.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-IsSubscribed: yes X-SW-Source: 2014-03/txt/msg00531.txt.bz2 On Thu, 20 Mar 2014 14:13:06 +0100, Aleksandar Ristovski wrote: > On 14-03-19 06:31 PM, Jan Kratochvil wrote: > >+@smallexample > >+ warning: Shared object "libfoo.so.1" could not be validated (remote > >+ build ID 2bc1745e does not match local build ID a08f8767) and will be > > I am not sure 'remote' adds any clarity here, on-contrary, I think > it will confuse. This could all be happening in local scenario as > well. The gist should be: inferior so build-id (i.e. build-id of the > shared object loaded in the inferior memory) does not match build-id > of the so gdb loaded to get symbols. Therefore: s/remote/inferior/ s/local/symbol file/ ------------------------------------------------------------------------------ @smallexample warning: Shared object "libfoo.so.1" could not be validated (inferior build ID 2bc1745e does not match symbol file build ID a08f8767) and will be ignored; or use 'set solib-build-id-force'. @end smallexample Turning on this setting would load such symbol file while still printing: @smallexample warning: Shared object "libfoo.so.1" could not be validated (inferior build ID 2bc1745e is not identical to symbol file build ID a08f8767) but it is being loaded due to 'set solib-build-id-force'. @end smallexample ------------------------------------------------------------------------------ > >+If remote build-id is present but it does not match local build-id (or local > >+build-id is not present) then this setting enables (@var{mode} is @code{on}) or > >+disables (@var{mode} is @code{off}) loading of such symbol file. On systems > >+where build-id is not present in the remote system this setting has no effect. > >+The default value is @code{off}. > > and here. I think 'inferior' would be a lot more suitable reference > than "remote system". Done. Thanks, Jan