From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11463 invoked by alias); 2 Jan 2013 17:57:09 -0000 Received: (qmail 11453 invoked by uid 22791); 2 Jan 2013 17:57:08 -0000 X-SWARE-Spam-Status: No, hits=-7.5 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_SPAMHAUS_DROP,KHOP_THREADED,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 02 Jan 2013 17:56:58 +0000 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r02Hus4s029178 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 2 Jan 2013 12:56:54 -0500 Received: from [127.0.0.1] (ovpn01.gateway.prod.ext.ams2.redhat.com [10.39.146.11]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id r02HuqDi027794; Wed, 2 Jan 2013 12:56:53 -0500 Message-ID: <50E474E3.7050605@redhat.com> Date: Wed, 02 Jan 2013 17:57:00 -0000 From: Pedro Alves User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: John Gilmore CC: Jan Kratochvil , Raphael Zulliger , gdb@sourceware.org Subject: Re: Ensure correct symbol-file when attaching to a (remote) process References: <50D3FC31.1020103@indel.ch> <20121221161114.GA32638@host2.jankratochvil.net> <201212211917.qBLJH6Il028006@new.toad.com> In-Reply-To: <201212211917.qBLJH6Il028006@new.toad.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2013-01/txt/msg00004.txt.bz2 On 12/21/2012 07:17 PM, John Gilmore wrote: > The best you can do in an automated way is to check the areas > of memory that are intended to contain instructions and read-only > data. For bare metal targets, that's often good enough, and GDB does have support that built in: (gdb) help compare-sections Compare section data on target to the exec file. Argument is a single section name (default: all loaded sections). A build id check would really be ideal. -- Pedro Alves