From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gateway36.websitewelcome.com (gateway36.websitewelcome.com [50.116.124.69]) by sourceware.org (Postfix) with ESMTPS id 86D033851C35 for ; Tue, 2 Mar 2021 22:04:32 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 86D033851C35 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=tromey.com Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=tom@tromey.com Received: from cm16.websitewelcome.com (cm16.websitewelcome.com [100.42.49.19]) by gateway36.websitewelcome.com (Postfix) with ESMTP id C677B400DC819 for ; Tue, 2 Mar 2021 16:04:30 -0600 (CST) Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with SMTP id HD82lEF425rKQHD82lb4XK; Tue, 02 Mar 2021 16:04:30 -0600 X-Authority-Reason: nr=8 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=1D0SLs1TFe13HizOQjqDjsAD5m7fs9dwNevAv5Ba/LE=; b=qF9I77DWclqvr/BkIwJaFsFR/L r5pq8CdZhV0nVBX9M7OLNpoYjOA331CV0tGHXk4uPzfGp7kjiTvDaJtkD+KnKlgBc1UX/642On7Y9 W7f8zf11fd43CPSYFaX3ihfEJ; Received: from 71-211-165-100.hlrn.qwest.net ([71.211.165.100]:34562 helo=localhost.localdomain) by box5379.bluehost.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1lHD82-001RU7-8p; Tue, 02 Mar 2021 15:04:30 -0700 From: Tom Tromey To: "Frank Ch. Eigler" Cc: Tom Tromey , Mark Wielaard , dwz@sourceware.org, elfutils-devel@sourceware.org, gdb-patches@sourceware.org Subject: Re: build-ids, .debug_sup and other IDs References: <20210221231810.1062175-1-tom@tromey.com> <20210224150752.GA23884@tarox.wildebeest.org> <87a6rt1b12.fsf@tromey.com> <20210225164245.GC11313@redhat.com> X-Attribution: Tom Date: Tue, 02 Mar 2021 15:04:29 -0700 In-Reply-To: <20210225164245.GC11313@redhat.com> (Frank Ch. Eigler's message of "Thu, 25 Feb 2021 11:42:45 -0500") Message-ID: <87im69fc0i.fsf@tromey.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - box5379.bluehost.com X-AntiAbuse: Original Domain - sourceware.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tromey.com X-BWhitelist: no X-Source-IP: 71.211.165.100 X-Source-L: No X-Exim-ID: 1lHD82-001RU7-8p X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 71-211-165-100.hlrn.qwest.net (localhost.localdomain) [71.211.165.100]:34562 X-Source-Auth: tom+tromey.com X-Email-Count: 3 X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-Spam-Status: No, score=-3021.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, JMQ_SPF_NEUTRAL, RCVD_IN_BL_SPAMCOP_NET, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, RCVD_IN_SBL_CSS, SPF_HELO_PASS, SPF_NEUTRAL, TXREP, URIBL_CSS, URIBL_CSS_A autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: dwz@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Dwz mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Mar 2021 22:04:33 -0000 >> But, this seemed a bit weird. What if both appear and they are >> different? Then a single API isn't so great -- you want to check the ID >> corresponding to whatever was in the original file. Frank> If both appear and are different, can we characterize the elf file as Frank> malformed? Not really, nothing specifies that these must be the same. Frank> Or debuginfod could export the content under -both- IDs, if there were Frank> two valid candidates, and just go with the flow. Let the clients Frank> choose which ID they prefer to look up by. There's a namespace problem here. You could, in theory, have executable A with build id AAAA, and also executable B with debug_sup id also AAAA. This could be fixed with some kind of query parameter. It would be easy on the gdb side to supply this information. Tom