From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id PKrAARD3p2X6wj4AWB0awg (envelope-from ) for ; Wed, 17 Jan 2024 10:49:36 -0500 Authentication-Results: simark.ca; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=KzfOfoRS; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id E6B8B1E0C3; Wed, 17 Jan 2024 10:49:35 -0500 (EST) Received: from server2.sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id CA9111E092 for ; Wed, 17 Jan 2024 10:49:33 -0500 (EST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 3007F385843B for ; Wed, 17 Jan 2024 15:49:33 +0000 (GMT) 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 7C5713858C42 for ; Wed, 17 Jan 2024 15:49:00 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 7C5713858C42 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 7C5713858C42 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.133.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1705506550; cv=none; b=nkpmSEkccHY5sj7lcccLLwiQ9CQsxpOyRHJ2u/8anJoHO1df5mBlTylKjL2LQC8Dx5lksEc9S2CdUJRdUrklD/C35/KRh222A564USrqFzmmsf3pmW2Shkqe08BI+CfFdU2ho6nZdx5AONQGc45+H3BKB5JLpR7pK1aPTj7uDds= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1705506550; c=relaxed/simple; bh=tbzPa0+OBPHU0PcvNxy5gxC52nIAcR+tLAWUizD2qsk=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=PUxfedYlaaCOQL4zxH/Eh9O6bIzH29I1+lJSt26kH7LtwzKB2Hn+Fd+dd6sl2NYf+qIVe9IjQyEkcA9bGm5vLIQKtjH92SaewidRTZlia1DOPdAbPwlDiXMP3ogiDXpDegOAcdMCwN+uwUzJnsmdddDvgCKChTBw50FmgU9f4SA= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1705506540; 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=NkHQnKod/9VmlCE7ltZoaIt+zp12hQagUm71QOlpL+Y=; b=KzfOfoRShOAI+CvFAev5ehoVkC6zMd3+jBHCR6E20ZZvlPwGJmcL7BT9O5POuhwIbpbVA/ 8O3EfFODugftGn9Cmw3NAL7D3lQ+sGiORtKZdcj7z16t0iw5hLzA3EnCIuC+wdMj04dVW7 yt3G9GvoL6+bY1I08y4qsjIvCvxUq8I= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-662-tt53fUz-PS-NY8c0i0I2LQ-1; Wed, 17 Jan 2024 10:48:57 -0500 X-MC-Unique: tt53fUz-PS-NY8c0i0I2LQ-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (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 mimecast-mx02.redhat.com (Postfix) with ESMTPS id 49E2D8371CC; Wed, 17 Jan 2024 15:48:57 +0000 (UTC) Received: from fedora.redhat.com (unknown [10.22.10.127]) by smtp.corp.redhat.com (Postfix) with ESMTP id DE7201121306; Wed, 17 Jan 2024 15:48:56 +0000 (UTC) From: Aaron Merey To: gdb-patches@sourceware.org Cc: aburgess@redhat.com, thiago.bauermann@linaro.org, Aaron Merey Subject: [PATCH 0/4] On-demand debuginfo downloading Date: Wed, 17 Jan 2024 10:48:51 -0500 Message-ID: <20240117154855.2057850-1-amerey@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.3 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=-6.3 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_H3, RCVD_IN_MSPIKE_WL, 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.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces+public-inbox=simark.ca@sourceware.org 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. Previous version can be found here: https://sourceware.org/pipermail/gdb-patches/2023-October/203589.html Aaron Merey (4): gdb: Buffer output streams during events that might download debuginfo gdb/progspace: Add reverse safe iterator gdb/debuginfod: Support on-demand debuginfo downloading gdb/debuginfod: Add .debug_line downloading gdb/cli-out.c | 21 +- gdb/cli-out.h | 3 + gdb/completer.c | 18 +- gdb/debuginfod-support.c | 15 +- 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 | 161 +++++++--- gdb/dwarf2/line-header.h | 10 + gdb/dwarf2/public.h | 7 + gdb/dwarf2/read-gdb-index.c | 185 ++++++++++- gdb/dwarf2/read.c | 355 ++++++++++++++++++++- gdb/dwarf2/read.h | 47 +++ gdb/dwarf2/section.c | 3 +- gdb/elfread.c | 3 +- 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 | 14 +- gdb/objfiles.h | 30 ++ gdb/progspace.c | 19 +- gdb/progspace.h | 31 +- gdb/python/py-uiout.h | 3 + gdb/quick-symbol.h | 4 + gdb/stack.c | 35 +- gdb/symfile-debug.c | 45 ++- gdb/symfile.c | 13 +- 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 | 199 ++++++++++++ gdb/testsuite/gdb.python/py-objfile.exp | 2 +- gdb/testsuite/lib/debuginfod-support.exp | 27 +- gdb/testsuite/lib/gdb.exp | 8 +- gdb/thread.c | 180 ++++++----- gdb/ui-file.h | 2 +- gdb/ui-out.c | 144 +++++++++ gdb/ui-out.h | 204 ++++++++++++ gdbsupport/safe-iterator.h | 106 ++++++ 44 files changed, 1910 insertions(+), 220 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.43.0