From 6596a5d4f605c2fc0963074a5eee4197938d02bb Mon Sep 17 00:00:00 2001 From: Hannes Domani Date: Tue, 29 Dec 2020 17:18:22 +0100 Subject: [PATCH] Fix wrong method name The objects returned by FrameDecorator.frame_args need to implement a method named symbol, not argument. gdb/doc/ChangeLog: 2020-12-29 Hannes Domani * python.texi (Frame Decorator API): Fix method name. --- gdb/doc/ChangeLog | 4 ++++ gdb/doc/python.texi | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog index 1d88c926346..022005952ce 100644 --- a/gdb/doc/ChangeLog +++ b/gdb/doc/ChangeLog @@ -1,3 +1,7 @@ +2020-12-29 Hannes Domani + + * python.texi (Frame Decorator API): Fix method name. + 2020-12-23 Alex Bennée * gdb.texinfo (Packets): Clarify language for ? packet. diff --git a/gdb/doc/python.texi b/gdb/doc/python.texi index 11cc877125d..51f6d1aa055 100644 --- a/gdb/doc/python.texi +++ b/gdb/doc/python.texi @@ -2045,7 +2045,7 @@ empty iterable, or @code{None} means frame arguments will not be printed for this frame. This iterable must contain objects that implement two methods, described here. -This object must implement a @code{argument} method which takes a +This object must implement a @code{symbol} method which takes a single @code{self} parameter and must return a @code{gdb.Symbol} (@pxref{Symbols In Python}), or a Python string. The object must also implement a @code{value} method which takes a single @code{self} -- 2.30.2