From: Hannes Domani Date: Wed, 26 May 2021 16:26:33 +0000 (+0200) Subject: Fix InlinedFrameDecorator example X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3067d0b1beebca59eb6148dc141436de3131a316;p=binutils-gdb.git Fix InlinedFrameDecorator example Argument fobj was only available in the constructor. gdb/doc/ChangeLog: 2021-05-29 Hannes Domani * python.texi (Writing a Frame Filter): Fix example. --- diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog index 2743079e93e..e78c4d4a8d8 100644 --- a/gdb/doc/ChangeLog +++ b/gdb/doc/ChangeLog @@ -1,3 +1,7 @@ +2021-05-29 Hannes Domani + + * python.texi (Writing a Frame Filter): Fix example. + 2021-05-27 Hannes Domani * python.texi (TUI Windows In Python): Document "full_window" diff --git a/gdb/doc/python.texi b/gdb/doc/python.texi index 23e6ac666ff..f05d39f96c0 100644 --- a/gdb/doc/python.texi +++ b/gdb/doc/python.texi @@ -2367,7 +2367,7 @@ class InlinedFrameDecorator(FrameDecorator): super(InlinedFrameDecorator, self).__init__(fobj) def function(self): - frame = fobj.inferior_frame() + frame = self.inferior_frame() name = str(frame.name()) if frame.type() == gdb.INLINE_FRAME: