diff options
author | Jan Vrany <jan.vrany@labware.com> | 2025-02-04 13:56:49 +0000 |
---|---|---|
committer | Jan Vrany <jan.vrany@labware.com> | 2025-02-04 13:56:49 +0000 |
commit | 5166ed9c9c6f60859295d932b65c5c5a19984dfd (patch) | |
tree | 874e1421f9a70922c7d1a66da7bdff26f6ac6233 /gdb/doc | |
parent | 96a02b669eb4e5483bc820cc2cc8acfff8b8ae23 (diff) | |
download | binutils-5166ed9c9c6f60859295d932b65c5c5a19984dfd.zip binutils-5166ed9c9c6f60859295d932b65c5c5a19984dfd.tar.gz binutils-5166ed9c9c6f60859295d932b65c5c5a19984dfd.tar.bz2 |
gdb/python: add subblocks property to gdb.Block
This commit adds new propery "subblocks" to gdb.Block objects. This
allows Python to traverse block tree starting with global block.
Reviewed-By: Eli Zaretskii <eliz@gnu.org>
Approved-By: Andrew Burgess <aburgess@redhat.com>
Diffstat (limited to 'gdb/doc')
-rw-r--r-- | gdb/doc/python.texi | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gdb/doc/python.texi b/gdb/doc/python.texi index c0bd9e7..d3c77d6 100644 --- a/gdb/doc/python.texi +++ b/gdb/doc/python.texi @@ -1,4 +1,4 @@ -@c Copyright (C) 2008--2024 Free Software Foundation, Inc. +@c Copyright (C) 2008--2025 Free Software Foundation, Inc. @c Permission is granted to copy, distribute and/or modify this document @c under the terms of the GNU Free Documentation License, Version 1.3 or @c any later version published by the Free Software Foundation; with the @@ -6046,6 +6046,11 @@ The block containing this block. If this parent block does not exist, this attribute holds @code{None}. This attribute is not writable. @end defvar +@defvar Block.subblocks +A list of blocks nested in this block. If there are no blocks nested, +this attribute holds an empty list. This attribute is not writable. +@end defvar + @defvar Block.global_block The global block associated with this block. This attribute is not writable. |