From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 54537 invoked by alias); 25 Apr 2019 15:49:49 -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 54529 invoked by uid 89); 25 Apr 2019 15:49:49 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-5.8 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS autolearn=ham version=3.3.1 spammy= X-HELO: gateway24.websitewelcome.com Received: from gateway24.websitewelcome.com (HELO gateway24.websitewelcome.com) (192.185.51.253) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 25 Apr 2019 15:49:48 +0000 Received: from cm13.websitewelcome.com (cm13.websitewelcome.com [100.42.49.6]) by gateway24.websitewelcome.com (Postfix) with ESMTP id A088213A15E for ; Thu, 25 Apr 2019 10:49:46 -0500 (CDT) Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with SMTP id Jgd8haYIMYTGMJgd8hgR36; Thu, 25 Apr 2019 10:49:46 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=Z3hnSOH4xm/xvyU+vEE8Xm5YalQvdPsbxorD5bv25Lw=; b=e3ibzAoa08SSbml0lRMmUIKHrN 129B1EioKY6djw1gq0i7RJJ3s+5IR/pajxBGIYfTEFb98LfUxWkTcK3fwGIX5XcNfmVb7vtSPO2t6 bxbOLTkGRNU1gxZchWpaOQF0v; Received: from 97-122-168-123.hlrn.qwest.net ([97.122.168.123]:56936 helo=murgatroyd) by box5379.bluehost.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.91) (envelope-from ) id 1hJgd8-000oDh-DP; Thu, 25 Apr 2019 10:49:46 -0500 From: Tom Tromey To: Eli Zaretskii Cc: Tom Tromey , lrn1986@gmail.com, gdb-patches@sourceware.org Subject: Re: Warning when using separate debug info file References: <83y348edoi.fsf@gnu.org> <20439f48-c0ff-e4b2-5cfc-6bb4b594d88c@gmail.com> <83h8aveape.fsf@gnu.org> <66d48dfd-23ac-7e05-3ad8-4e65b0c1c7f9@gmail.com> <834l6vdv4y.fsf@gnu.org> <87k1fjfbio.fsf@tromey.com> <83mukf19dl.fsf@gnu.org> <87y33yci4w.fsf@tromey.com> <838svyyvql.fsf@gnu.org> Date: Thu, 25 Apr 2019 15:49:00 -0000 In-Reply-To: <838svyyvql.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 25 Apr 2019 18:01:38 +0300") Message-ID: <87zhoeaxuu.fsf@tromey.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SW-Source: 2019-04/txt/msg00529.txt.bz2 >>>>> "Eli" == Eli Zaretskii writes: >> I don't recall which but probably the section is either loadable or >> allocatable in your situation. Eli> Both, it looks: [...] Eli> But the question is why GDB looks for this section in the hello.debug Eli> file, not in hello.exe. That's what the warning emitted by GDB is Eli> about: When reading a separate debug file, gdb tries to ensure the section offsets for the separate debug file are the same as the section offsets in the main file. To do this, it matches sections -- but only sections that are loadable (or allocatable, like I said, I forget). Eli> What do you get with the above objdump command on the separate debug Eli> file? I get an error message: I get the same error, because my separate debug file does not include this section. The section isn't needed in the separate debug file -- only in the stripped file. What is wrong here is the section flags. Tom