Message ID | 20241128035402.438052-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 837BD3858CDB for <patchwork@sourceware.org>; Thu, 28 Nov 2024 03:55:56 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 837BD3858CDB 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=d3Nm9fQm 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 5C5D93858D21 for <gdb-patches@sourceware.org>; Thu, 28 Nov 2024 03:54:09 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 5C5D93858D21 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 5C5D93858D21 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=1732766049; cv=none; b=qnynqoZf25V3CB3xWgrFInqaCTpXkPXFUB/ieAxspGfFC7irsvQJZock1Tqn20iIwHovuWP4ApKhVUf9DkObqhW50XNqupIkiHVIs1RDpHvbxLOqllYAdUBl15ffgtyMFt5nDlxTN9kfg04qN60iXeV9/wLNgkO1Lt9aikHBmNc= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1732766049; c=relaxed/simple; bh=p31HTcEjvYR2i+PtjOFulH39/e2OcdyJmQoBExfRvgw=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=DBFLtysLbiROAnhv0i7WbwRBMEuDtxK+JIN1Kyprqm9RghbaL460X2RhUEgenrTJPIP8gRdUxyOE7c5jK8MPQDPAffFZRN7ZMRw55XYWU5c+VdCRjWZjICbcX6iPT4+mY2jF9JtSNg1oL6ODjyX5twCDpWPJfm/4xoGdcS3WGGQ= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5C5D93858D21 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1732766049; 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=EeRU+AF9X2wTykxULFSLdsYYLuGyjyIVGPRGZYa9ZWw=; b=d3Nm9fQmOse3dh9OuClZ330puqrLDRTOJeOqwc6UF4vhASQMgK7ElVPquYwGXLlNK3kFvt 1hM1Wi97gQT/W0c+dhY3Jeq+SXjqZjGO57q8OJ0xZD9l01nLQFbsvBDgA9fCxo2Jn1kLYn DFPx+w4d/k3tDOyaYVUIJK9ZHGzaUtY= Received: from mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-371-Qo501NpVML2aPrh9_Ewp7g-1; Wed, 27 Nov 2024 22:54:07 -0500 X-MC-Unique: Qo501NpVML2aPrh9_Ewp7g-1 X-Mimecast-MFC-AGG-ID: Qo501NpVML2aPrh9_Ewp7g Received: from mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.12]) (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-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id D05F61956095 for <gdb-patches@sourceware.org>; Thu, 28 Nov 2024 03:54:06 +0000 (UTC) Received: from fedora.redhat.com (unknown [10.22.64.69]) by mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id E6D61195E480; Thu, 28 Nov 2024 03:54:05 +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] On-demand debuginfo downloading Date: Wed, 27 Nov 2024 22:53:59 -0500 Message-ID: <20241128035402.438052-1-amerey@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.0 on 10.30.177.12 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: prY8CmpKlHuJ_n8gnzxMw_jH9cofcIs7KqJOL1c2fZ0_1732766047 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit content-type: text/plain; charset="US-ASCII"; x-default=true X-Spam-Status: No, score=-6.0 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_H2, SPF_HELO_NONE, SPF_NONE, TXREP 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 | On-demand debuginfo downloading | |
Message
Aaron Merey
Nov. 28, 2024, 3:53 a.m. UTC
Patch set that adds support for lazy/on-demand downloading of debuginfo as well as .gdb_index, .debug_line and .debug_line_str ELF section downloading. See patch 2/3 commit message for details. 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 | 133 +++++++- gdb/dwarf2/read.c | 352 ++++++++++++++++++++- gdb/dwarf2/read.h | 42 +++ 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 | 118 +++++++ 36 files changed, 1358 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