Message ID | 20230601014347.3367489-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 9ACD23857019 for <patchwork@sourceware.org>; Thu, 1 Jun 2023 01:44:37 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9ACD23857019 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1685583877; bh=pkkd3wjGkNRUjTuYlbVlLgP0RQRx3npKMuhvqZRNrCw=; h=To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=edZwOK3PlQBwo7kb2HOoOiGRdjp61qXxH8BejHqJOR3uC4pP0Zbr1dQD9p+dehCTa InVceANI1hwibQxZAn3EgvfB+MjOTFbjMgH9JhzkyjmKyX+ytLM0FNQ6ZWmluDVams ThPeRCIxA2FUCTtPzJlVgEgAxbkRpJHJaJZmEkFk= 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 A2A343858D20 for <gdb-patches@sourceware.org>; Thu, 1 Jun 2023 01:44:12 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org A2A343858D20 Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-74-0q1PEHQBOSqeSZgsLaZjuw-1; Wed, 31 May 2023 21:44:11 -0400 X-MC-Unique: 0q1PEHQBOSqeSZgsLaZjuw-1 Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 0B49E811E7C for <gdb-patches@sourceware.org>; Thu, 1 Jun 2023 01:44:11 +0000 (UTC) Received: from localhost.localdomain (unknown [10.22.32.3]) by smtp.corp.redhat.com (Postfix) with ESMTP id B2F16492B00; Thu, 1 Jun 2023 01:44:10 +0000 (UTC) To: gdb-patches@sourceware.org Cc: aburgess@redhat.com, Aaron Merey <amerey@redhat.com> Subject: [PATCH 0/6 v3] gdb/debuginfod: Add on-demand debuginfo downloading Date: Wed, 31 May 2023 21:43:41 -0400 Message-Id: <20230601014347.3367489-1-amerey@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.9 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.3 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_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.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
June 1, 2023, 1:43 a.m. UTC
Aaron Merey (6): gdb/debuginfod: Add debuginfod_section_query gdb: Add command 'maint set/show debuginfod download-sections' gdb: Buffer gdb_stdout during events that might download deferred 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 config/debuginfod.m4 | 33 +++ gdb/cli-out.c | 28 +- gdb/cli-out.h | 1 + gdb/config.in | 3 + gdb/configure | 116 +++++++- gdb/configure.ac | 2 +- gdb/debuginfod-support.c | 139 ++++++++- gdb/debuginfod-support.h | 24 ++ gdb/doc/gdb.texinfo | 16 +- 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 | 183 ++++++++++-- gdb/dwarf2/read.c | 311 ++++++++++++++++++++- gdb/dwarf2/read.h | 41 +++ gdb/dwarf2/section.c | 3 +- gdb/elfread.c | 2 +- gdb/infrun.c | 17 +- gdb/mi/mi-out.c | 29 ++ gdb/mi/mi-out.h | 1 + gdb/objfile-flags.h | 4 + gdb/objfiles.h | 33 ++- gdb/progspace.c | 8 +- gdb/progspace.h | 159 ++++++++--- gdb/python/py-mi.c | 2 + gdb/quick-symbol.h | 4 + gdb/stack.c | 38 ++- gdb/symfile-debug.c | 136 ++++----- 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 | 202 +++++++++++++ gdb/testsuite/gdb.python/py-objfile.exp | 2 +- gdb/testsuite/lib/debuginfod-support.exp | 35 ++- gdb/thread.c | 174 +++++++----- gdb/ui-file.c | 62 ++++ gdb/ui-file.h | 45 ++- gdb/ui-out.c | 21 ++ gdb/ui-out.h | 66 +++++ 45 files changed, 2058 insertions(+), 314 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