From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 72419 invoked by alias); 1 Mar 2018 12:41:46 -0000 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 Received: (qmail 72398 invoked by uid 89); 1 Mar 2018 12:41:45 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-5.9 required=5.0 tests=BAYES_00,GIT_PATCH_1,KAM_LAZY_DOMAIN_SECURITY,SPF_HELO_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy=H*f:sk:s-PPFvD, H*f:sk:0oQQ@ma, H*i:sk:s-PPFvD, H*i:sk:0oQQ@ma X-HELO: hqemgate16.nvidia.com Received: from hqemgate16.nvidia.com (HELO hqemgate16.nvidia.com) (216.228.121.65) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 01 Mar 2018 12:41:43 +0000 Received: from hqpgpgate101.nvidia.com (Not Verified[216.228.121.13]) by hqemgate16.nvidia.com id ; Thu, 01 Mar 2018 04:41:43 -0800 Received: from HQMAIL103.nvidia.com ([172.20.161.6]) by hqpgpgate101.nvidia.com (PGP Universal service); Thu, 01 Mar 2018 04:41:42 -0800 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Thu, 01 Mar 2018 04:41:42 -0800 Received: from UKMAIL102.nvidia.com (10.26.138.15) by HQMAIL103.nvidia.com (172.20.187.11) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Thu, 1 Mar 2018 12:41:41 +0000 Received: from localhost.localdomain (10.21.45.12) by UKMAIL102.nvidia.com (10.26.138.15) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Thu, 1 Mar 2018 12:41:38 +0000 Subject: Add .gdb_index and CRC mismatch To: References: From: Dmitry Antipov Message-ID: <25596a27-77c0-238e-748c-3d972914abec@nvidia.com> Date: Thu, 01 Mar 2018 12:41:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: UKMAIL102.nvidia.com (10.26.138.15) To UKMAIL102.nvidia.com (10.26.138.15) X-IsSubscribed: yes X-SW-Source: 2018-03/txt/msg00000.txt.bz2 For the remote debugging and local copies of shared libraries, should .so CRC be affected by adding .gdb_index as described at https://sourceware.org/gdb/onlinedocs/gdb/Index-Files.html? After adding .gdb_index, 'target extended-remote :XXXX' refuses to load local copy with the following message: warning: the debug information found in "/xxx/yyy/lib/debug/libzzz.so" does not match "target:/lib/libzzz.so" (CRC mismatch). If CRC was actually changed, how is it indented to use .gdb_index for the remote debugging? And why there is no CRC warning when I do 'add-symbol-file /xxx/yyy/lib/debug/libzzz.so [addr]' manually? Dmitry