From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-74.mimecast.com (us-smtp-delivery-74.mimecast.com [216.205.24.74]) by sourceware.org (Postfix) with ESMTP id CBF37385E009 for ; Sat, 28 Mar 2020 00:40:56 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org CBF37385E009 Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-61-Hy53PWjcNVaKKPBJvoS0Lw-1; Fri, 27 Mar 2020 20:40:51 -0400 X-MC-Unique: Hy53PWjcNVaKKPBJvoS0Lw-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id C30461005509; Sat, 28 Mar 2020 00:40:50 +0000 (UTC) Received: from redhat.com (ovpn-112-181.phx2.redhat.com [10.3.112.181]) by smtp.corp.redhat.com (Postfix) with ESMTPS id A396B5E02F; Sat, 28 Mar 2020 00:40:50 +0000 (UTC) Received: from [127.0.0.1] (helo=vm-rhel7) by redhat.com with esmtp (Exim 4.92.3) (envelope-from ) id 1jHzWr-0006Kh-Ai; Fri, 27 Mar 2020 20:40:49 -0400 From: fche@redhat.com (Frank Ch. Eigler) To: Norbert Lange Cc: gdb@sourceware.org Subject: Re: Automatically fetching Build ID from remote libraries and resole them locally? References: Date: Fri, 27 Mar 2020 20:40:48 -0400 In-Reply-To: (Norbert Lange via Gdb's message of "Fri, 27 Mar 2020 15:20:21 +0100") Message-ID: <87blohl3an.fsf@redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-16.9 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gdb@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Mar 2020 00:40:57 -0000 Norbert Lange via Gdb writes: > [...] > ie. DL only some ELF headers or remotely inspect the Build-ID, > then lookup and resolve the matching library and debuginfo in the > debug-file-directory database. [...] By the way, this part of the problem is solved e.g. using the elfutils debuginfod facility, which is now part of gdb. If gdb can get the buildids, then it can auto-download matching binaries & source code. https://sourceware.org/elfutils/Debuginfod.html - FChE