From 3067d0b1beebca59eb6148dc141436de3131a316 Mon Sep 17 00:00:00 2001 From: Hannes Domani Date: Wed, 26 May 2021 18:26:33 +0200 Subject: [PATCH] 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. --- 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 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: -- 2.39.2