Message ID | 20250124152010.2077378-1-amerey@redhat.com |
---|---|
Headers |
Return-Path: <gdb-patches-bounces~patchwork=sourceware.org@sourceware.org> X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id F0D533857C58 for <patchwork@sourceware.org>; Fri, 24 Jan 2025 15:22:16 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org F0D533857C58 Authentication-Results: sourceware.org; dkim=pass (1024-bit key, unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=W2cfG+Ac X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTP id B8819385840F for <gdb-patches@sourceware.org>; Fri, 24 Jan 2025 15:20:28 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B8819385840F Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org B8819385840F Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1737732028; cv=none; b=NslmyZuft3PSB70iovSBRCUouVqD9cQkVgR1aTYqQW9gorKPSeQExDgHRs47YSeziLREIbyiOSpGva6qdmVEtxQb1uPabTY7qRa25yjLaToQ8M+MaVk7x0y1eNOnUewfFmzfsXkZWimH1DA12ILl/02NqW4607dBiXAiUyljzNY= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1737732028; c=relaxed/simple; bh=TTkKhgaCnvG0hAjRf+zN4DKGJzoDruz6qMPmX5h2Lxs=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=CmTR1WHiC83YM2ua6EfFbVDgrwu1FLWYOuS6iwzHijO297CxUusdeBQcEqXIWKFClowJo9CMw9lQAHIHTpykaBjsQV3kNa67Yg3y/Dy5rgZJLeIjyVWQIxWuAy3mQuXK1nnzePq9ldHVs+f9MtY7z6FDXGJjcCYp83U/AClxguQ= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B8819385840F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1737732028; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=W5zFBAy4KnOkkMBnN8C9UifK9yjLrcE8L2r0c6zwtpI=; b=W2cfG+Acjx2TmFiGHJ01IWH1FthY7uo00nqRQ1W0m6OuGYBZ2okHapUsl+3zO9dLVUvj43 RGphQQSImejAksBDZ/oSQncP5X9QLBbTmbm8r4hMEkEt12RuFP11lWGzYDFa/vcnPdvudm DVQfKqizYCNZcSLtl8TFnB11bJ7nWkg= Received: from mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-9-dSumMtpmOwGnVpUWuLHbyw-1; Fri, 24 Jan 2025 10:20:25 -0500 X-MC-Unique: dSumMtpmOwGnVpUWuLHbyw-1 X-Mimecast-MFC-AGG-ID: dSumMtpmOwGnVpUWuLHbyw Received: from mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.93]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 4A82E1A70A11 for <gdb-patches@sourceware.org>; Fri, 24 Jan 2025 15:20:14 +0000 (UTC) Received: from fedora.redhat.com (unknown [10.22.90.6]) by mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 7000C1800365; Fri, 24 Jan 2025 15:20:13 +0000 (UTC) From: Aaron Merey <amerey@redhat.com> To: gdb-patches@sourceware.org Cc: aburgess@redhat.com, Aaron Merey <amerey@redhat.com> Subject: [PATCH 0/3] Add on-demand debuginfo downloading Date: Fri, 24 Jan 2025 10:20:07 -0500 Message-ID: <20250124152010.2077378-1-amerey@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.93 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: S6xvusSFMEpr5HMEYy43fOgGqz-Nk68xsX0Ev_4-Q8E_1737732022 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit content-type: text/plain; charset="US-ASCII"; x-default=true X-Spam-Status: No, score=-7.2 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H5, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list <gdb-patches.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/gdb-patches>, <mailto:gdb-patches-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/gdb-patches/> List-Post: <mailto:gdb-patches@sourceware.org> List-Help: <mailto:gdb-patches-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/gdb-patches>, <mailto:gdb-patches-request@sourceware.org?subject=subscribe> Errors-To: gdb-patches-bounces~patchwork=sourceware.org@sourceware.org |
Series |
Add on-demand debuginfo downloading
|
|
Message
Aaron Merey
Jan. 24, 2025, 3:20 p.m. UTC
Patch set that adds support for lazy/on-demand downloading of debuginfo. .gdb_index, .debug_line and .debug_line_str ELF section downloading is also added to facilitate deferral of debuginfo downloading. All three patches in this series have been rebased onto gdb's current master branch Aaron Merey (3): gdb/progspace: Add reverse safe iterator gdb/debuginfod: Support on-demand debuginfo downloading gdb/debuginfod: Add .debug_line downloading gdb/cli-out.c | 11 +- gdb/completer.c | 18 +- gdb/dwarf2/frame.c | 13 + gdb/dwarf2/frame.h | 4 + gdb/dwarf2/index-cache.c | 22 +- gdb/dwarf2/index-cache.h | 11 + gdb/dwarf2/line-header.c | 161 +++++++--- gdb/dwarf2/line-header.h | 10 + gdb/dwarf2/public.h | 5 + gdb/dwarf2/read-gdb-index.c | 143 ++++++++- gdb/dwarf2/read.c | 342 ++++++++++++++++++++- gdb/dwarf2/read.h | 43 +++ gdb/dwarf2/section.c | 6 +- gdb/elfread.c | 3 +- gdb/frame.c | 27 +- gdb/jit.c | 7 +- gdb/mi/mi-out.c | 9 +- gdb/objfile-flags.h | 4 + gdb/objfiles.c | 16 +- gdb/objfiles.h | 36 ++- gdb/progspace.c | 19 +- gdb/progspace.h | 30 +- gdb/quick-symbol.h | 4 + gdb/symfile-debug.c | 45 ++- gdb/symfile.c | 12 +- gdb/symtab.c | 18 +- gdb/testsuite/gdb.debuginfod/libsection1.c | 43 +++ gdb/testsuite/gdb.debuginfod/libsection2.c | 37 +++ gdb/testsuite/gdb.debuginfod/section.c | 29 ++ gdb/testsuite/gdb.debuginfod/section.exp | 185 +++++++++++ gdb/testsuite/gdb.python/py-objfile.exp | 2 +- gdb/testsuite/lib/debuginfod-support.exp | 25 +- gdb/testsuite/lib/gdb.exp | 8 +- gdb/ui-out.c | 3 + gdb/ui-out.h | 20 ++ gdbsupport/safe-iterator.h | 119 +++++++ 36 files changed, 1360 insertions(+), 130 deletions(-) create mode 100644 gdb/testsuite/gdb.debuginfod/libsection1.c create mode 100644 gdb/testsuite/gdb.debuginfod/libsection2.c create mode 100644 gdb/testsuite/gdb.debuginfod/section.c create mode 100644 gdb/testsuite/gdb.debuginfod/section.exp