diff options
author | Tom Tromey <tromey@adacore.com> | 2023-05-19 09:40:35 -0600 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2023-05-19 10:47:09 -0600 |
commit | 3f33695b64123e60a7487eb1a9f91a40a42f0f9f (patch) | |
tree | 1ecc7f083511428e092489b4f4f7b92dee4594dc /gdb/doc/python.texi | |
parent | 05d31a0b3f03d391a067df8808aafdf302a49bcf (diff) | |
download | gdb-3f33695b64123e60a7487eb1a9f91a40a42f0f9f.zip gdb-3f33695b64123e60a7487eb1a9f91a40a42f0f9f.tar.gz gdb-3f33695b64123e60a7487eb1a9f91a40a42f0f9f.tar.bz2 |
Update documentation for Python Frame.older and Frame.newer
I noticed that Frame.older and Frame.newer don't document that they
return None at the ends of the stack. This patch updates the
documentation, and also fixes a somewhat related typo in a comment
that I noticed while digging into this.
Approved-By: Eli Zaretskii <eliz@gnu.org>
Diffstat (limited to 'gdb/doc/python.texi')
-rw-r--r-- | gdb/doc/python.texi | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/doc/python.texi b/gdb/doc/python.texi index d93ee55..c93f289 100644 --- a/gdb/doc/python.texi +++ b/gdb/doc/python.texi @@ -5367,11 +5367,13 @@ Return the symbol for the function corresponding to this frame. @end defun @defun Frame.older () -Return the frame that called this frame. +Return the frame that called this frame. If this is the oldest frame, +return @code{None}. @end defun @defun Frame.newer () -Return the frame called by this frame. +Return the frame called by this frame. If this is the newest frame, +return @code{None}. @end defun @defun Frame.find_sal () |