Fix InlinedFrameDecorator example

Argument fobj was only available in the constructor.

gdb/doc/ChangeLog:

2021-05-29  Hannes Domani  <ssbssa@yahoo.de>

	* python.texi (Writing a Frame Filter): Fix example.
This commit is contained in:
Hannes Domani
2021-05-26 18:26:33 +02:00
parent 1ff6a3b8e5
commit 3067d0b1be
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2021-05-29 Hannes Domani <ssbssa@yahoo.de>
* python.texi (Writing a Frame Filter): Fix example.
2021-05-27 Hannes Domani <ssbssa@yahoo.de>
* python.texi (TUI Windows In Python): Document "full_window"

View File

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