diff options
author | Hannes Domani <ssbssa@yahoo.de> | 2021-05-26 18:26:33 +0200 |
---|---|---|
committer | Hannes Domani <ssbssa@yahoo.de> | 2021-05-29 13:39:18 +0200 |
commit | 3067d0b1beebca59eb6148dc141436de3131a316 (patch) | |
tree | 958ace8d5dcd83536905ba28b4934554a60a5241 | |
parent | 1ff6a3b8e562d09aec8dcf1d8b0ef67f271126fc (diff) | |
download | binutils-3067d0b1beebca59eb6148dc141436de3131a316.zip binutils-3067d0b1beebca59eb6148dc141436de3131a316.tar.gz binutils-3067d0b1beebca59eb6148dc141436de3131a316.tar.bz2 |
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.
-rw-r--r-- | gdb/doc/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/doc/python.texi | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog index 2743079..e78c4d4 100644 --- a/gdb/doc/ChangeLog +++ b/gdb/doc/ChangeLog @@ -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" diff --git a/gdb/doc/python.texi b/gdb/doc/python.texi index 23e6ac6..f05d39f 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: |