]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Update gdb.Symbol.is_variable documentation
authorTom Tromey <tromey@adacore.com>
Tue, 31 Oct 2023 15:16:08 +0000 (09:16 -0600)
committerTom Tromey <tromey@adacore.com>
Tue, 14 Nov 2023 15:49:55 +0000 (08:49 -0700)
Kévin found a bug in an earlier version of this series that was based
on a misconception I had about Symbol.is_variable.  This patch fixes
the documentation to explain the method a bit better.

Approved-By: Eli Zaretskii <eliz@gnu.org>
(cherry picked from commit 5006ea556dad71c4c868cf5705e007e72e3b02b4)

gdb/doc/python.texi

index a1ed642977391f41ab2ac6a45964973a63c91846..99670cca0252af4f730fc834c5d8dc2c1518f381 100644 (file)
@@ -5984,7 +5984,9 @@ local variables will require a frame, but other symbols will not.
 @end defvar
 
 @defvar Symbol.is_variable
-@code{True} if the symbol is a variable.
+@code{True} if the symbol is a variable, as opposed to something like
+a function or type.  Note that this also returns @code{False} for
+arguments.
 @end defvar
 
 A @code{gdb.Symbol} object has the following methods: