Fix InlinedFrameDecorator example
authorHannes Domani <ssbssa@yahoo.de>
Wed, 26 May 2021 16:26:33 +0000 (18:26 +0200)
committerHannes Domani <ssbssa@yahoo.de>
Sat, 29 May 2021 11:39:18 +0000 (13:39 +0200)
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.

gdb/doc/ChangeLog
gdb/doc/python.texi

index 2743079e93e66e4e2156491c68858ef085d8bb1f..e78c4d4a8d8a028dabf5e738a54e61bae554ed29 100644 (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"
index 23e6ac666ffcc966458e51fd465ea56fe0beef8d..f05d39f96c050f1a04bef013a21f022ec5014ff4 100644 (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: