From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id /BEQBbApBmpOpDoAWB0awg (envelope-from ) for ; Thu, 14 May 2026 15:59:44 -0400 Authentication-Results: simark.ca; dkim=pass (2048-bit key; secure) header.d=adacore.com header.i=@adacore.com header.a=rsa-sha256 header.s=google header.b=LwUhy66N; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id F30711E067; Thu, 14 May 2026 15:59:43 -0400 (EDT) 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 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 5E47A1E067 for ; Thu, 14 May 2026 15:59:42 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id C0F8F4C9176A for ; Thu, 14 May 2026 19:59:41 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C0F8F4C9176A Authentication-Results: sourceware.org; dkim=pass (2048-bit key, secure) header.d=adacore.com header.i=@adacore.com header.a=rsa-sha256 header.s=google header.b=LwUhy66N Received: from mail-oi1-x231.google.com (mail-oi1-x231.google.com [IPv6:2607:f8b0:4864:20::231]) by sourceware.org (Postfix) with ESMTPS id 4D6364BAE7C5 for ; Thu, 14 May 2026 19:59:16 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 4D6364BAE7C5 Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=adacore.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=adacore.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 4D6364BAE7C5 Authentication-Results: sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::231 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1778788756; cv=none; b=vCOPm/SDhN5fRlPX88fUbt2nM1gJS338TmB0w1xWwgUaOCyHUQywSeKNIz+fTIMU1clG8AGaTVWlbNEjPOwGp5XWK2mbx857eAca7ylScMIvfTAtLyKxKkQElsvSgPCS4sBhgZOKcEwE1xCBaEhkT3mq151GHA2QeqtTZNxyP7E= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1778788756; c=relaxed/simple; bh=a5ccFaetNXN2tgfzO2vw3uxlar80do2OKb9hjF2yP30=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=QeLTQSQPM4JD+SAb8PgvGIMLlZnGcCBnDQtH/K0NC/8TgXSl/NP+zDPrcPMA3gx2YFOIeaJ/3qG3QmYD2aV1RsUXdqf3Nye8AKAolN76oimGpbL+JOHJxXcMUCf3u0eJg3q1HSks/E7y0HV5yMAYa+R5Pw6NjmAdeaoAg9gN7Ro= ARC-Authentication-Results: i=1; sourceware.org; dkim=pass (2048-bit key, secure) header.d=adacore.com header.i=@adacore.com header.a=rsa-sha256 header.s=google header.b=LwUhy66N DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4D6364BAE7C5 Received: by mail-oi1-x231.google.com with SMTP id 5614622812f47-463f00cda04so4727953b6e.2 for ; Thu, 14 May 2026 12:59:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adacore.com; s=google; t=1778788755; x=1779393555; darn=sourceware.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=rQjElKf+++CQmNdp6zHcg+8RRgHaUx3yQyOeluDa8gg=; b=LwUhy66NhIPnfdDui5KN3HsgzMPg7lFc39gGhufcpwjMFIPg3UWmlU1ZoBPPhYzXM2 gU8lZAi2WiQ0wNWh3V4hqBxN7Yz1ECbuKJt4/I8jFEPrjGjnXafzSImJSpQ87u45HHpL 7HaEs7xVRqH56AR6cMR+drV2j/lJdJtxirnqAJ2fdvwbxMURV4RbvAY43uECNzNWVEjx X+GYJXXamIfp3od3kvK9kmsEnahuUwoV80vvb1gPYtis/xAugc9KI201Xsv1D7Y8Tznw RRddQTdiJiDsBgdWzNNxgYFVk9u+FvNGmNi/SNUQcLFtP0xOHV1FAFAc1Yt435KAoi0p 594A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778788755; x=1779393555; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=rQjElKf+++CQmNdp6zHcg+8RRgHaUx3yQyOeluDa8gg=; b=T1WoyFUfduWbJOnxnJupmtzRCaNhqrnJ/buCXNqyMdt95CXm8WnA7tEXFGTLswIB2u Vz103X+YKdyhSVCh+3cNGG8r0Ox6ycK/yZ64a/IKA7FFEjfOJRY9Xj6MhW0zW0cnfG8a vtsdu9aItDc3sCrBJn9tGfqB6X84HfvPnrGurjSrQMN06TOrIk1nzL/qCnM3Jz9v5wVp N6BcdPnATlfhoFeitCOkxDeRA1kEWnGnMDTLDn1F7dwJ8ehbzuC1FVVoPR8+f6cDK+Se W3Sv+L24BoaomtAWWJ48yDTrmkiNFnoPaqcixBMf0t4gEnKlYP7Fqk394jfy/PRNRiQG 9q3w== X-Gm-Message-State: AOJu0YwC/e+Isfz/sKXeGjiIgP8eMGQt7RaFuAmuYaOBrSDSX8xhIYOK ghDNervsZiBHb8g7dfefhfunwyAgm/A6WezE7b48BqAE+mV8ekRL4bNfTMrn7UjQIdl5ArX1C2y IZ6g= X-Gm-Gg: Acq92OE1+bExomLrL+V5Z6cUN0eQ9LhlCww9usrL2CwKvJhJxVtSNNNjoRpRvlvEU+F c8GV9G0GznjbvmUvYJUJcgn+Q0630YT3g/j4eFoTMEMuP/beSQbierqMLyG6PpRSY+cQiIH4zq5 kp3sXtN/mJgLNnFdV+VbzVydJjWYE+uiXxcWUeS+qV4cyA8NjQYRyc2AanAsFksG6aoe2EGSzKm qCeuuqihq/M1T7BUaTyjxNuQgihVyZcN3i6qMBt9j0xpopZ4NNkPjhdLf17A61l95rSxuMy8gY2 hzXHjwjhUYP5WjdCrzoDHed/2mJvHtU0nNVaj4soRLl/7GdaNLYNrb+AChxA5/V0QRr7db8E/q2 sBLALou7n6b0td0MkBtSayb2n2A41vgthKTzkAIEgWsxWyrW/bZjyFDJYYsZEcUqK+3kVi1zLeL 0+myhPDSLpIt3PzZFokkATMIoPLxsasPV9/GX26S8WJHU= X-Received: by 2002:a05:6808:d4f:b0:467:1e5:6769 with SMTP id 5614622812f47-482e57c3a6dmr686046b6e.45.1778788755459; Thu, 14 May 2026 12:59:15 -0700 (PDT) Received: from bapiya (75-166-225-82.hlrn.qwest.net. [75.166.225.82]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-7e3f3ee2c5bsm2573698a34.22.2026.05.14.12.59.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 May 2026 12:59:15 -0700 (PDT) From: Tom Tromey To: gdb-patches@sourceware.org Cc: Tom Tromey Subject: [PATCH] [doc] Update obsolete text about sub-blocks Date: Thu, 14 May 2026 13:59:07 -0600 Message-ID: <20260514195907.1995821-1-tromey@adacore.com> X-Mailer: git-send-email 2.54.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 The manual claims that there is no way to iterate over the sub-blocks of a gdb.Block, but this hasn't been true since commit 5166ed9c ("gdb/python: add subblocks property to gdb.Block"). This patch removes the obsolete clause and rewords the paragraph. --- gdb/doc/python.texi | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/gdb/doc/python.texi b/gdb/doc/python.texi index 6cafab78d58..663976f1877 100644 --- a/gdb/doc/python.texi +++ b/gdb/doc/python.texi @@ -6273,10 +6273,9 @@ The block nested just inside the global block is the @dfn{static block}. The static block typically holds file-scoped variables and functions. -@value{GDBN} provides a method to get a block's superblock, but there -is currently no way to examine the sub-blocks of a block, or to -iterate over all the blocks in a symbol table (@pxref{Symbol Tables In -Python}). +There is currently no way to iterate over all the blocks in a symbol +table (@pxref{Symbol Tables In Python}), but once a block is found, +its super- and sub-blocks can be iterated over. Here is a short example that should help explain blocks: base-commit: 2ea3f3a7ac2dd6ccd42e96d496b56aa42e7cb993 -- 2.54.0