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  <ssbssa@yahoo.de>

	* python.texi (Frame Decorator API): Fix method name.
This commit is contained in:
Hannes Domani 2020-12-29 17:18:22 +01:00
parent e2e3422ce1
commit 6596a5d4f6
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
2020-12-29 Hannes Domani <ssbssa@yahoo.de>
* python.texi (Frame Decorator API): Fix method name.
2020-12-23 Alex Bennée <alex.bennee@linaro.org>
* gdb.texinfo (Packets): Clarify language for ? packet.

View file

@ -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}