From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id M8aQDvZhE2l4oTYAWB0awg (envelope-from ) for ; Tue, 11 Nov 2025 11:19:02 -0500 Authentication-Results: simark.ca; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=KpZp6+Bp; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 1FA311E0B8; Tue, 11 Nov 2025 11:19:02 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-2.4 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,RCVD_IN_VALIDITY_CERTIFIED_BLOCKED, RCVD_IN_VALIDITY_RPBL_BLOCKED,RCVD_IN_VALIDITY_SAFE_BLOCKED autolearn=ham autolearn_force=no version=4.0.1 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 534C01E057 for ; Tue, 11 Nov 2025 11:19:01 -0500 (EST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id AB17D3858CDA for ; Tue, 11 Nov 2025 16:19:00 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AB17D3858CDA DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1762877940; bh=wEG4S6c0CsHhDqQFK6GwbwOO9tSl9w5hpJjQJaDKWWE=; h=Date:To:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=KpZp6+BpN1gcsNve2lnJKnyaVEdLuloVbs1ZmZ02vnTNJfjpuF51b1xnsJ2SuhW/p LF+oLl2w4kQOm79M/0rMs1U7PDWQxR9osc7tRziQPD2EbFOMsNEslp4wGzqMEZpqcV kyCg7EQIQWVvLlPMP/6+S3a5cHPwYhsL7fEnLOdU= Received: from mail-10627.protonmail.ch (mail-10627.protonmail.ch [79.135.106.27]) by sourceware.org (Postfix) with ESMTPS id 5B4B83858D29 for ; Tue, 11 Nov 2025 16:18:16 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 5B4B83858D29 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 5B4B83858D29 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1762877897; cv=none; b=qcEb2SZoUVXjN1UzhxIX6lvV9qsdSajfGeGT5xBfUDxH5/eiCSHteSUpRn91ACzFTrEZwQgw4ZCA6izqv2iNrzbz32bkp+JpRtAMEGewj4dWQmZhaTWVMGgLyXmhzNb8NGj3wNST+SQCn9ZceiaGL5+Tg6bagmabiMX0cbL+X5k= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1762877897; c=relaxed/simple; bh=wEG4S6c0CsHhDqQFK6GwbwOO9tSl9w5hpJjQJaDKWWE=; h=DKIM-Signature:Date:To:From:Subject:Message-ID:MIME-Version; b=IvBJHBiYxQDWT08vkreASKtdtAU5Eeuwhw7OeQrWid05lEXUMLqcJBEoVZRTr1S6wAcFaASz8E4QpRRuCJrQrSa8gABj74e8qedpL7JgCsmrVyqbHD5643N0H1CmEWTcC/I77W34hpoFKsOuQn6jyEluqEKQ4C7BYlVLBlosOSw= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5B4B83858D29 Date: Tue, 11 Nov 2025 16:18:05 +0000 To: GDB mailing list Subject: Internals of -readnow implementation Message-ID: Feedback-ID: 40767693:user:proton X-Pm-Message-ID: c50cb44c176828d3230b5d6b61732162c5db778b MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: gdb@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Jan Vrany via Gdb Reply-To: Jan Vrany Errors-To: gdb-bounces~public-inbox=simark.ca@sourceware.org Sender: "Gdb" Hi,=20 looking at how -readnow is implemented, I'm puzzled why implementation of readnow_functions inherits/user dwarf2_base_index_functions? My understanding is that if -readnow is specified, then all compunit symbtabs in that objfile are fully read. It seems to me that in theory one can implement it "directly"=C2=A0 by traversing compunit symtabs, its blockvector and symbols=C2=A0 (rather=C2=A0than using dwarf2_per_objfile and alike).=C2=A0 Is that because it was just easier to implement it this way or is there a reason why it has to go through DWARF reader structures? Thanks,=20 Jan