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 223063858288 for ; Wed, 16 Aug 2023 04:43:05 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 223063858288 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=1692160984; 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=P0A/VEttG7qXm1p+nIR1UVtU4Z/18W/KnuInTNVzjQU=; b=BuqgUQlF/JS1vBwlHZcUrZ9x1C7PrZF8FuyCTh1GQ2BTJASqwnJ/tKf/4pjscIpIghmt6s 9f8QZyLq404mySmeLUMGXSO+TJMgIvEnLinxG17UDG0YiToIj6ntWy9+RvowIQ4i2yMSAb vHR/qgGjka1fJ2oAbntkp7s6PCCh1dY= 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 ; 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) From: Aaron Merey To: gdb-patches@sourceware.org Cc: aburgess@redhat.com, Aaron Merey 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 List-Id: 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 -- 2.41.0