Message ID | 20230816044259.2675531-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 C650C3855593 for <patchwork@sourceware.org>; Wed, 16 Aug 2023 04:43:31 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C650C3855593 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1692161011; bh=P0A/VEttG7qXm1p+nIR1UVtU4Z/18W/KnuInTNVzjQU=; h=To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=akwy1qr1V5TehhMxr3FhrsMNQ1bjpqVPoTP+tstUSlOrGR9ajquLgURsz3V21/srh D7qU8iInlrnltHWaKxZRsTnLGzitYxW4JQwzvbKzmSLNLgX+cG/aBJXa3stxkcWZZU LzuEic68GilnK3BN2nRJ8QC/faDeZYMu+fzrJPNM= 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.133.124]) by sourceware.org (Postfix) with ESMTPS id 223063858288 for <gdb-patches@sourceware.org>; Wed, 16 Aug 2023 04:43:05 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 223063858288 Received: from mimecast-mx02.redhat.com (66.187.233.73 [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-90-f3A0C3PXMhCxN-c7kBeQ8g-1; Wed, 16 Aug 2023 00:43:03 -0400 X-MC-Unique: f3A0C3PXMhCxN-c7kBeQ8g-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 20596380606B for <gdb-patches@sourceware.org>; Wed, 16 Aug 2023 04:43:03 +0000 (UTC) Received: from fedora.redhat.com (unknown [10.22.8.113]) by smtp.corp.redhat.com (Postfix) with ESMTP id A40822026D4B; Wed, 16 Aug 2023 04:43:02 +0000 (UTC) To: gdb-patches@sourceware.org Cc: aburgess@redhat.com, Aaron Merey <amerey@redhat.com> Subject: [PATCH 0/7] gdb/debuginfod: Add on-demand debuginfo downloading Date: Wed, 16 Aug 2023 00:42:51 -0400 Message-ID: <20230816044259.2675531-1-amerey@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.4 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII"; x-default=true X-Spam-Status: No, score=-5.6 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_H4, RCVD_IN_MSPIKE_WL, 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.29 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> From: Aaron Merey via Gdb-patches <gdb-patches@sourceware.org> Reply-To: Aaron Merey <amerey@redhat.com> Errors-To: gdb-patches-bounces+patchwork=sourceware.org@sourceware.org Sender: "Gdb-patches" <gdb-patches-bounces+patchwork=sourceware.org@sourceware.org> |
Series |
gdb/debuginfod: Add on-demand debuginfo downloading
|
|
Message
Aaron Merey
Aug. 16, 2023, 4:42 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. Aaron Merey (7): config/debuginfod.m4: Add check for libdebuginfod 0.188 gdb/debuginfod: Add debuginfod_section_query gdb: Add command 'maint set/show debuginfod download-sections' gdb: Buffer output streams during events that might download debuginfo gdb/progspace: Add reverse safe iterator and template for unwrapping iterator gdb/debuginfod: Support on-demand debuginfo downloading gdb/debuginfod: Add .debug_line downloading binutils/config.in | 3 + binutils/configure | 108 ++++++- config/debuginfod.m4 | 13 +- gdb/cli-out.c | 21 +- gdb/cli-out.h | 3 + gdb/completer.c | 18 +- gdb/config.in | 3 + gdb/configure | 108 ++++++- gdb/debuginfod-support.c | 136 +++++++- gdb/debuginfod-support.h | 24 ++ gdb/doc/gdb.texinfo | 19 +- gdb/dwarf2/frame.c | 13 + gdb/dwarf2/frame.h | 4 + gdb/dwarf2/index-cache.c | 33 ++ gdb/dwarf2/index-cache.h | 13 + gdb/dwarf2/line-header.c | 215 ++++++++----- gdb/dwarf2/line-header.h | 10 + gdb/dwarf2/public.h | 7 + gdb/dwarf2/read-gdb-index.c | 216 +++++++++++-- gdb/dwarf2/read.c | 354 ++++++++++++++++++++- gdb/dwarf2/read.h | 47 +++ gdb/dwarf2/section.c | 3 +- gdb/elfread.c | 2 +- gdb/frame.c | 7 + gdb/infrun.c | 16 +- gdb/jit.c | 7 +- gdb/mi/mi-out.c | 9 +- gdb/mi/mi-out.h | 3 + gdb/objfile-flags.h | 4 + gdb/objfiles.c | 8 +- gdb/objfiles.h | 28 +- gdb/progspace.c | 19 +- gdb/progspace.h | 31 +- gdb/python/py-mi.c | 3 + gdb/quick-symbol.h | 4 + gdb/stack.c | 35 +- gdb/symfile.c | 13 +- gdb/symtab.c | 18 +- gdb/testsuite/gdb.debuginfod/libsection1.c | 40 +++ gdb/testsuite/gdb.debuginfod/libsection2.c | 37 +++ gdb/testsuite/gdb.debuginfod/section.c | 29 ++ gdb/testsuite/gdb.debuginfod/section.exp | 205 ++++++++++++ gdb/testsuite/gdb.python/py-objfile.exp | 2 +- gdb/testsuite/lib/debuginfod-support.exp | 27 +- gdb/thread.c | 171 +++++----- gdb/ui-file.h | 2 +- gdb/ui-out.c | 123 +++++++ gdb/ui-out.h | 194 +++++++++++ gdbsupport/safe-iterator.h | 106 ++++++ 49 files changed, 2280 insertions(+), 234 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