aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2023-10-31 09:16:08 -0600
committerTom Tromey <tromey@adacore.com>2023-11-14 08:44:31 -0700
commit5006ea556dad71c4c868cf5705e007e72e3b02b4 (patch)
tree56b15d28c34d56c696714c1e4acd4d59f282d20f /gdb
parentebea770b19c09489fe5e2cb5c1fd568f0f21e17e (diff)
downloadgdb-5006ea556dad71c4c868cf5705e007e72e3b02b4.zip
gdb-5006ea556dad71c4c868cf5705e007e72e3b02b4.tar.gz
gdb-5006ea556dad71c4c868cf5705e007e72e3b02b4.tar.bz2
Update gdb.Symbol.is_variable documentation
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>
Diffstat (limited to 'gdb')
-rw-r--r--gdb/doc/python.texi4
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/doc/python.texi b/gdb/doc/python.texi
index c3dfc7a..b65991b 100644
--- a/gdb/doc/python.texi
+++ b/gdb/doc/python.texi
@@ -6052,7 +6052,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: