diff options
author | Tom Tromey <tromey@adacore.com> | 2023-10-31 09:16:08 -0600 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2023-11-14 08:49:55 -0700 |
commit | 1df83e9a59c2f986eae90cb9fe7ff3ffdd62c9a3 (patch) | |
tree | 44cb967b682a9b19ac4cf867a00b3ec0a837d6a5 /gdb | |
parent | add31fcb873bc69406fabb4c55d7b78311254c17 (diff) | |
download | gdb-1df83e9a59c2f986eae90cb9fe7ff3ffdd62c9a3.zip gdb-1df83e9a59c2f986eae90cb9fe7ff3ffdd62c9a3.tar.gz gdb-1df83e9a59c2f986eae90cb9fe7ff3ffdd62c9a3.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>
(cherry picked from commit 5006ea556dad71c4c868cf5705e007e72e3b02b4)
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/doc/python.texi | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/doc/python.texi b/gdb/doc/python.texi index a1ed642..99670cc 100644 --- a/gdb/doc/python.texi +++ b/gdb/doc/python.texi @@ -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: |