From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 ; Thu, 1 Jun 2023 01:44:12 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org A2A343858D20 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1685583852; 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=pkkd3wjGkNRUjTuYlbVlLgP0RQRx3npKMuhvqZRNrCw=; b=ESmIlVs/Vsu4pIYRSfIrAyxqB8Q38qNEqmfmVioSkwHUN7/qQVnUBZV10IzAFqV7kDtZw+ P2eX3p6mdS7/Yvp6nyWNUR35aultVkf94QU5jY0Z8K8cq/vn5ngDP+O8Vm02XEHac7I/BB Klf2L6yaFf3m0QEIZEVaAcgyH32asBk= 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 ; 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) From: Aaron Merey To: gdb-patches@sourceware.org Cc: aburgess@redhat.com, Aaron Merey 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 List-Id: 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 -- 2.40.1