* [PATCH v2] [doc] Update obsolete text about sub-blocks
@ 2026-09-03 16:47 Tom Tromey
2026-09-03 17:45 ` Eli Zaretskii
0 siblings, 1 reply; 2+ messages in thread
From: Tom Tromey @ 2026-09-03 16:47 UTC (permalink / raw)
To: gdb-patches; +Cc: Tom Tromey
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").
v2: This patch removes the entire paragraph. After some discussion we
agreed it was confusing to talk about what gdb can't do.
---
gdb/doc/python.texi | 5 -----
1 file changed, 5 deletions(-)
diff --git a/gdb/doc/python.texi b/gdb/doc/python.texi
index 1a38360ca1a..d86d679c35d 100644
--- a/gdb/doc/python.texi
+++ b/gdb/doc/python.texi
@@ -6273,11 +6273,6 @@ 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}).
-
Here is a short example that should help explain blocks:
@smallexample
base-commit: 21e7edb10530341334a02c873aa9f7f5aeb0138a
--
2.55.0
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [PATCH v2] [doc] Update obsolete text about sub-blocks
2026-09-03 16:47 [PATCH v2] [doc] Update obsolete text about sub-blocks Tom Tromey
@ 2026-09-03 17:45 ` Eli Zaretskii
0 siblings, 0 replies; 2+ messages in thread
From: Eli Zaretskii @ 2026-09-03 17:45 UTC (permalink / raw)
To: Tom Tromey; +Cc: gdb-patches
> From: Tom Tromey <tromey@adacore.com>
> Cc: Tom Tromey <tromey@adacore.com>
> Date: Thu, 3 Sep 2026 10:47:49 -0600
>
> 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").
>
> v2: This patch removes the entire paragraph. After some discussion we
> agreed it was confusing to talk about what gdb can't do.
> ---
> gdb/doc/python.texi | 5 -----
> 1 file changed, 5 deletions(-)
This is okay, thanks.
Approved-By: Eli Zaretskii <eliz@gnu.org>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-09-03 17:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-03 16:47 [PATCH v2] [doc] Update obsolete text about sub-blocks Tom Tromey
2026-09-03 17:45 ` Eli Zaretskii
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox