From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id Hsc2EfLVjWlwxDcAWB0awg (envelope-from ) for ; Thu, 12 Feb 2026 08:30:26 -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=V8vyQ73h; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 2D93E1E0BA; Thu, 12 Feb 2026 08:30:26 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIMWL_WL_HIGH,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 vm01.sourceware.org (vm01.sourceware.org [38.145.34.32]) (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 8A2411E089 for ; Thu, 12 Feb 2026 08:30:25 -0500 (EST) Received: from vm01.sourceware.org (localhost [127.0.0.1]) by sourceware.org (Postfix) with ESMTP id 156554B9DB46 for ; Thu, 12 Feb 2026 13:30:25 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 156554B9DB46 Authentication-Results: sourceware.org; dkim=pass (1024-bit key, unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=V8vyQ73h Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTP id 84CC64BA2E1C for ; Thu, 12 Feb 2026 13:29:58 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 84CC64BA2E1C Authentication-Results: sourceware.org; dmarc=pass (p=quarantine 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 84CC64BA2E1C Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1770902998; cv=none; b=hKevEqtvKeR2kV7xXqKMFkMvday8QpLowMTdJnX8JGd3GBYIezgyK4/AxE6cCL9XV3f4nVafHsLGODpM/Z8cl7qehiTQxrAvpJiqILCQECYVFANnB3h+1XUq0QFk5dloK+HbIdjIP7rJ+gYC3Zb7ZoXiLUxi6eKouGd4ouYtkXI= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1770902998; c=relaxed/simple; bh=rMRxlAGYodJbnfE5/IIPHSIs8UONfknz3xirtS5LQMM=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=Y1NqXiy5WZAIhkwhak2gXcJG1NtvvSdOEijlHh1vnAbmS2kd2ojfHEJp34hrz7nS5FWsJiKFaS0VyX78SHvre4PAWe6BqHGbSiRZsL1rzYqB3eZ7WrlVuFDBS/geBMc3YuiXuP6zEVLriVoJdnbFwIDBz+0Wyfl4XrhEhgYCook= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 84CC64BA2E1C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1770902998; 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: in-reply-to:in-reply-to:references:references; bh=oThvKsj388QdVU6stWyacDL6jb8ri25tJYUJQazUlrk=; b=V8vyQ73hShwDr1ZiWFzSmPqwKpuEUDdFLYH0CQj2D469XL3Bwdk1wrQ9kWitYHZt6tGVhc R5WdFBOC5fsXtTLugo6zvB5t4WejWbJs9DeJOu9JhAfF5F3VewmvjvnnhY5LoOXd629rm7 tI+cfP9HDJu2vJHN8GVDFCgO4rP38QY= Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-91-bb7k5cqsPy2MA2-cUQDSlQ-1; Thu, 12 Feb 2026 08:29:56 -0500 X-MC-Unique: bb7k5cqsPy2MA2-cUQDSlQ-1 X-Mimecast-MFC-AGG-ID: bb7k5cqsPy2MA2-cUQDSlQ_1770902995 Received: by mail-wm1-f71.google.com with SMTP id 5b1f17b1804b1-47edf8ba319so31885915e9.2 for ; Thu, 12 Feb 2026 05:29:56 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1770902995; x=1771507795; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=oThvKsj388QdVU6stWyacDL6jb8ri25tJYUJQazUlrk=; b=iOCxN82JxcYacotUBXiZEw6NOsjsZV9MikhlNm+kB64/GxFWVX1ENBCzKNsO7XLanj 23+pHeqWyWp5DaWejaInIWAiRMVew8UrjbQQY46M9qtiZFY+NGzruxwxG/frwM7vOjIW 3NVvhwbkiMrktzMEgfd2o4+Jsss/IQrHsEquwc+Y4C1fE52YEUBj57Ct0VyF4n3z8S18 PauEs4ig3+7b93bW8pgwsgvhzcTS959r/SDvFRIEa3v48zYHNL7VwhdtHZDi36tdPHpL t1ouSshEmR0jwNvc80o/rO3T4+W7YsepyT+AZREcCOoX2qoWZ0L35tHv4lxUQwi1Q+/R +E8Q== X-Gm-Message-State: AOJu0YzhUJREx0rEhhV7IFOVBtwYrMw1TB98c17R5cKF6/gCjgQnrBg5 J35GtvMDW6RRiRtr05Jc8LqP5KbbmTlsqvx4iyctP26zk+y/wRnchpLDcrWCylgN54ygotprZJf iOZYzwi9QUNlWfARpFvkPFzwaHxe+PK/9xEYZMa+KUMCaBMtFlrX9YsPqijyVl6nKMO8zLRs= X-Gm-Gg: AZuq6aKJDSfBZH5h6Im1MY2kR95tdUn1uk6IHr3a5QNZRh0NyS6V1SpgTibtVctk+xE xco9i5XWXY5+G9+O3EtoLSjPQM8DZ4eyZKq1Qx4vXHCLB8CSOQSi9d82SPw9b8XysW+8Qex53uc /6Vzm9/L8Ycjj4XXqJ7/kTRwLCR7WiClEf7SCyDi/VpzSl6Fi5BixGXQ0k+MTn2oFOY6fPEIK72 jE0D8WxYBEGU503pqFE7Figa8UnsFfRHXbyL6gI8Dd3E6HlO2aByX+5/WrxCGg6axHp+epsiDAB GW3iRW+d1C2ejejejyno5/9xNssLMao2O330w84Lonvf1aD7k08ATYsSEtfXEpQA995gqzryz10 mYVgca4kfzt8WG4X5 X-Received: by 2002:a05:600c:1d06:b0:483:498f:7963 with SMTP id 5b1f17b1804b1-4836715eae6mr32741065e9.26.1770902994789; Thu, 12 Feb 2026 05:29:54 -0800 (PST) X-Received: by 2002:a05:600c:1d06:b0:483:498f:7963 with SMTP id 5b1f17b1804b1-4836715eae6mr32740685e9.26.1770902994295; Thu, 12 Feb 2026 05:29:54 -0800 (PST) Received: from localhost ([31.111.84.232]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4835a60ee40sm96159715e9.1.2026.02.12.05.29.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Feb 2026 05:29:53 -0800 (PST) From: Andrew Burgess To: Eli Zaretskii , Tom Tromey Cc: gdb-patches@sourceware.org Subject: Re: [PATCH RFC 1/2] Remove "readnow" support In-Reply-To: <86qzqqtn80.fsf@gnu.org> References: <20260211-nuke-readnow-v1-0-7eed7148eec6@tromey.com> <20260211-nuke-readnow-v1-1-7eed7148eec6@tromey.com> <86qzqqtn80.fsf@gnu.org> Date: Thu, 12 Feb 2026 13:29:52 +0000 Message-ID: <87h5rmay3z.fsf@redhat.com> MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: v5c1Krc-DJry47dYcSIzfqFiOMIfKg6HQqG765wDP2E_1770902995 X-Mimecast-Originator: redhat.com Content-Type: text/plain 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 Eli Zaretskii writes: >> From: Tom Tromey >> Date: Wed, 11 Feb 2026 11:49:09 -0700 >> Cc: Tom Tromey >> >> I think the "readnow" feature should be removed. >> >> "readnow" exists basically to work around potential bugs in any >> "partial" reader. This used to work ok because gdb would scan all the >> expanded symtabs in addition to using the "quick" functions. This >> changed with the "search via psyms" series. >> >> So now, "readnow" is basically its own separate implementation. As >> such, I don't think it carries its weight. It is very slow and uses a >> lot of memory, and can have its own bugs requiring extra work on our >> part. > > Is there any other way for the user to force GDB to read all of the > symbols from all of the object files? If not, perhaps this > functionality still has its value? Maybe we should make it a "maint" > command instead? I second this. We do run into bugs with the indexes from time to time, and it's good to have some way to tell GDB to go read the full debug information so we can narrow the bug down. Plus it offers a work around in these cases. Is 'maint expand-symtabs' the equivalent? When someone uses -readnow should we maybe guide them towards the new way of doing things, even all we do is point towards a particular entry in the manual maybe? Thanks, Andrew