From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id H20wGYUur2nlsyAAWB0awg (envelope-from ) for ; Mon, 09 Mar 2026 16:33:09 -0400 Authentication-Results: simark.ca; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=SPnm4kEq; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 5028F1E089; Mon, 09 Mar 2026 16:33:09 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-2.4 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,RCVD_IN_VALIDITY_CERTIFIED_BLOCKED, RCVD_IN_VALIDITY_RPBL_BLOCKED,RCVD_IN_VALIDITY_SAFE_BLOCKED autolearn=ham autolearn_force=no version=4.0.1 Received: from vm01.sourceware.org (vm01.sourceware.org [38.145.34.32]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 1D8521E089 for ; Mon, 09 Mar 2026 16:33:08 -0400 (EDT) Received: from vm01.sourceware.org (localhost [127.0.0.1]) by sourceware.org (Postfix) with ESMTP id B51CC4BA23CD for ; Mon, 9 Mar 2026 20:33:06 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B51CC4BA23CD DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1773088386; bh=9Jl81ICH+D4UrR4jkXpQxkshX1XvmE45Thdlc6fZx7c=; h=Subject:To:Cc:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=SPnm4kEq2XBQZB8egHNvkTTkNtS/CG5y6qCxA7JM6H7ogbfWhyncKogNGTLwrM2kE aXIVzab76dANHmSExuR80U+PcXCRn3uuj/elHL8WkJYtpF22kGlikrNu3dGcnv5tE1 2fxt9WHsS4dElM5K5+sSmJ1TEgvZpusQxkXvU02U= Received: from eggs.gnu.org (eggs.gnu.org [IPv6:2001:470:142:3::10]) by sourceware.org (Postfix) with ESMTPS id C8E994BA2E10 for ; Mon, 9 Mar 2026 20:32:32 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org C8E994BA2E10 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org C8E994BA2E10 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1773088352; cv=none; b=atX2wf4l1UauiEd7pKaBfcranB/aTSbDPjGeHSJnZoINjCJ6oler3pxgHlOqEiiXWhPKkX2HNUCP2X9rQZKSudr1d3Mu9MNJcpQuUeJTq0N64NBJDsJBkeYU3rPINQsgbaWb5pdVJfIl6goBfzCzKOtsZ3CLtoe7qfeeFaFrBoc= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1773088352; c=relaxed/simple; bh=dpvkBdbsP+lbX8KDXd/mOV4nZqFWUDAK9fA7ZQOyJCQ=; h=DKIM-Signature:Message-ID:Subject:From:To:Date:MIME-Version; b=h/1CFzbXoj8xzdFHUeRjAFxUrFxnjFbGZWBO6ONzulZG+K8ZLZLlVdlhE1Y0BmndTTL1wAB+czIMlvr2hyjX+5+dzayPURiKWTCJdAsawqK5zmtH/i0ZBwa8qc6YgAazQ2nfjgeVb9G/TvOmFZSp/fxGwhHg9rpZxw4OABt4k6g= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C8E994BA2E10 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vzhHC-0006aq-E6; Mon, 09 Mar 2026 16:32:30 -0400 Message-ID: <421fe2ad615c4af1443ddbd3955ee65cb7feb9ee.camel@gnu.org> Subject: Re: Does gdb debuginfod download libc etc.? To: Andrew Burgess Cc: gdb@sourceware.org Date: Mon, 09 Mar 2026 16:32:28 -0400 In-Reply-To: <87ldg16ivz.fsf@redhat.com> References: <86wlzmfyep.fsf@aarsen.me> <4844fe241f5524951dc68a6ce05e450897342034.camel@gnu.org> <8c514818-14bd-462d-8aed-0c323327acae@simark.ca> <7949b3d7727ab11f6bc3c833fae81f485c345c47.camel@gnu.org> <87ldg16ivz.fsf@redhat.com> Organization: GNU's Not UNIX! Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.58.3 (by Flathub.org) MIME-Version: 1.0 X-BeenThere: gdb@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Paul Smith via Gdb Reply-To: psmith@gnu.org Errors-To: gdb-bounces~public-inbox=simark.ca@sourceware.org Sender: "Gdb" On Mon, 2026-03-09 at 16:57 +0000, Andrew Burgess wrote: > Unfortunately, there's no debug flag which reports on GDB as it > parses the build-ids from the core file.=C2=A0 But the patch below which > applies to gdb-17-branch adds a new 'set debug core-load on' command, > with this you should be able to: >=20 > =C2=A0 (gdb) set debug core-load on=20 > =C2=A0 (gdb) core-file ~/core.54313=20 > =C2=A0 [core-load] build_file_mappings: enter > =C2=A0=C2=A0=C2=A0 [core-load] operator(): start =3D 0x400000, end =3D 0x= 407000, > filename =3D /some/program, build-id =3D > a004xxxx178xxxx78xxxx6c6cxxxx800df88xxxx > =C2=A0=C2=A0=C2=A0 [core-load] operator(): start =3D 0x407000, end =3D 0x= 41e000, > filename =3D /some/program, build-id =3D NONE > =C2=A0=C2=A0=C2=A0 [core-load] operator(): start =3D 0x41e000, end =3D 0x= 427000, > filename =3D /some/program, build-id =3D NONE > =C2=A0=C2=A0=C2=A0 [core-load] operator(): start =3D 0x428000, end =3D 0x= 429000, > filename =3D /some/program, build-id =3D NONE Ah, this is very useful. Unfortunately it leads me to this discovery; the only output I get from this is: (gdb) core-file /data/psh13/tmp/core [core-load] build_file_mappings: enter [core-load] build_file_mappings: exit Apparently the executable is handled separately, since that is looked up immediately afterwards (when setting DEBUGINFOD_VERBOSE=3D9): > debuginfod_find_executable f87c1d8cd2118209ef2350b22b187a64d705d6cd > server urls "http://debuginfod:8002" > checking build-id > checking cache dir /home/pds/.cache/debuginfod_client > found > /home/pds/.cache/debuginfod_client/f87c1d8cd2118209ef2350b22b187a64d7 > 05d6cd/hdr-executable (bytes=3D55) > found > /home/pds/.cache/debuginfod_client/f87c1d8cd2118209ef2350b22b187a64d7 > 05d6cd/executable (fd=3D14) > Reading symbols from > /home/pds/.cache/debuginfod_client/f87c1d8cd2118209ef2350b22b187a64d7 > 05d6cd/executable... However, this is very good info, I will proceed to try to figure out why eu-unstrip etc. can find the build ID values, but GDB cannot.