From 5006ea556dad71c4c868cf5705e007e72e3b02b4 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Tue, 31 Oct 2023 09:16:08 -0600 Subject: [PATCH] Update gdb.Symbol.is_variable documentation MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- gdb/doc/python.texi | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gdb/doc/python.texi b/gdb/doc/python.texi index c3dfc7ae0fa..b65991bbad0 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: -- 2.30.2