[binutils-gdb] Fix InlinedFrameDecorator example
Hannes Domani
ssbssa@sourceware.org
Sat May 29 11:41:01 GMT 2021
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=3067d0b1beebca59eb6148dc141436de3131a316
commit 3067d0b1beebca59eb6148dc141436de3131a316
Author: Hannes Domani <ssbssa@yahoo.de>
Date: Wed May 26 18:26:33 2021 +0200
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.
Diff:
---
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 <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 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:
More information about the Gdb-cvs
mailing list